mirror of
https://github.com/bringout/oca-warehouse.git
synced 2026-04-20 16:22:00 +02:00
13 lines
369 B
Python
13 lines
369 B
Python
# Copyright 2020 Tecnativa - David Vidal
|
|
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
|
|
|
|
|
|
def uninstall_hook(cr, registry):
|
|
"""Delete barcode rules with generate model `stock.location` as they
|
|
won't be useful anymore"""
|
|
cr.execute(
|
|
"""
|
|
DELETE FROM barcode_rule
|
|
WHERE generate_model = 'stock.location'
|
|
"""
|
|
)
|