[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

@@ -8,6 +8,7 @@ class ResPartner(models.Model):
customer_global_discount_ids = fields.Many2many(
comodel_name="global.discount",
relation="customer_global_discount_rel",
column1="partner_id",
column2="global_discount_id",
string="Sale Global Discounts",
@@ -15,6 +16,7 @@ class ResPartner(models.Model):
)
supplier_global_discount_ids = fields.Many2many(
comodel_name="global.discount",
relation="supplier_global_discount_rel",
column1="partner_id",
column2="global_discount_id",
string="Purchase Global Discounts",