Odoo18-Base/addons/account_lock/__init__.py
2025-03-10 10:52:11 +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.')