Files
server-backend/base_global_discount/migrations/13.0.1.0.0/pre-migration.py
2020-11-05 10:28:42 -05:00

14 lines
316 B
Python

# Copyright 2020 Tecnativa - Ernesto Tejeda
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
def migrate(cr, version):
if not version:
return
cr.execute(
"""
DELETE FROM ir_model_relation
WHERE name = 'global_discount_res_partner_rel';
"""
)