mirror of
https://github.com/OCA/server-backend.git
synced 2025-02-18 09:52:42 +02:00
[MIG] base_global_discount: Migration to 13.0
This commit is contained in:
13
base_global_discount/migrations/13.0.1.0.0/pre-migration.py
Normal file
13
base_global_discount/migrations/13.0.1.0.0/pre-migration.py
Normal 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';
|
||||
"""
|
||||
)
|
||||
Reference in New Issue
Block a user