Debian Codegraph @

addons/point_of_sale/__init__.py

raw
1 # -*- coding: utf-8 -*-
2 # Part of Odoo. See LICENSE file for full copyright and licensing details.
3
4 from . import models
5 from . import controllers
6 from . import report
7 from . import wizard
8
9
10 def uninstall_hook(env):
11 #The search domain is based on how the sequence is defined in the _get_sequence_values method in /addons/point_of_sale/models/stock_warehouse.py
12 env['ir.sequence'].search([('name', 'ilike', '%Picking POS%'), ('prefix', 'ilike', '%/POS/%')]).unlink()