Browse Source

[FIX] contract: Invalid pricelist name

pull/158/head
Carlos Dauden 7 years ago
parent
commit
6f33dd5691
  1. 2
      contract/__manifest__.py
  2. 2
      contract/models/res_partner.py

2
contract/__manifest__.py

@ -8,7 +8,7 @@
{ {
'name': 'Contracts Management - Recurring', 'name': 'Contracts Management - Recurring',
'version': '11.0.1.4.2',
'version': '11.0.1.4.3',
'category': 'Contract Management', 'category': 'Contract Management',
'license': 'AGPL-3', 'license': 'AGPL-3',
'author': "OpenERP SA, " 'author': "OpenERP SA, "

2
contract/models/res_partner.py

@ -39,7 +39,7 @@ class ResPartner(models.Model):
search_default_partner_id=self.id, search_default_partner_id=self.id,
default_partner_id=self.id, default_partner_id=self.id,
default_recurring_invoices=True, default_recurring_invoices=True,
default_pricelist_id=self.pricelist_id.id,
default_pricelist_id=self.property_product_pricelist.id,
), ),
) )
return res return res
Loading…
Cancel
Save