# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. from . import models from odoo.exceptions import UserError def uninstall_hook(env): if not env.ref('base.module_base').demo: raise UserError('The module "Account Audit Trail" (account_audit_trail) cannot be uninstalled.')