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

10 lines
360 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
def uninstall_hook(env):
env.cr.execute("SELECT 1 FROM ir_module_module WHERE name = 'pos_enterprise' AND state = 'installed'")
if env.cr.rowcount:
env.cr.execute("UPDATE pos_config SET is_posbox = False WHERE is_posbox")