[MIG] base_global_discount: Migration to 13.0

This commit is contained in:
Ernesto Tejeda
2020-11-03 19:07:07 -05:00
parent 5830b70af5
commit 2ba9cb53e7
12 changed files with 75 additions and 29 deletions

View File

@@ -0,0 +1,13 @@
# 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';
"""
)