1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/account_lock/__init__.py
2024-12-10 09:04:09 +07:00

10 lines
257 B
Python

# -*- coding: utf-8 -*-
from . import models
from odoo.exceptions import UserError
def uninstall_hook(env):
if not env.ref('base.module_base').demo:
raise UserError('The module "Irreversible Lock Date" (account_lock) cannot be uninstalled.')