Odoo18-Base/addons/pos_loyalty/__init__.py

9 lines
278 B
Python
Raw Permalink Normal View History

2025-01-06 10:57:38 +07:00
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import models
def uninstall_hook(env):
"""Delete loyalty history record accessing pos order on uninstall."""
env['loyalty.history'].search([('order_model', '=', 'pos.order')]).unlink()