From 6f33dd5691e34693e10f9dd5fca679bcc4377716 Mon Sep 17 00:00:00 2001 From: Carlos Dauden Date: Fri, 30 Mar 2018 12:25:15 +0200 Subject: [PATCH] [FIX] contract: Invalid pricelist name --- contract/__manifest__.py | 2 +- contract/models/res_partner.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contract/__manifest__.py b/contract/__manifest__.py index 31094fa6..eaa39d61 100644 --- a/contract/__manifest__.py +++ b/contract/__manifest__.py @@ -8,7 +8,7 @@ { 'name': 'Contracts Management - Recurring', - 'version': '11.0.1.4.2', + 'version': '11.0.1.4.3', 'category': 'Contract Management', 'license': 'AGPL-3', 'author': "OpenERP SA, " diff --git a/contract/models/res_partner.py b/contract/models/res_partner.py index 9ba30acb..f175912a 100644 --- a/contract/models/res_partner.py +++ b/contract/models/res_partner.py @@ -39,7 +39,7 @@ class ResPartner(models.Model): search_default_partner_id=self.id, default_partner_id=self.id, default_recurring_invoices=True, - default_pricelist_id=self.pricelist_id.id, + default_pricelist_id=self.property_product_pricelist.id, ), ) return res