Debian Codegraph @

addons/sale_loyalty/__init__.py

raw symbols SCIP
1 # Part of Odoo. See LICENSE file for full copyright and licensing details.
2
3 from . import models
4 from . import wizard
5
6
7 def uninstall_hook(env):
8 """Delete loyalty history record accessing order on uninstall."""
9 env['loyalty.history'].search([('order_model', '=', 'sale.order')]).unlink()