Browse Source

Merge pull request #158 from Tecnativa/11.0-FIX-contract-pricelist_name

[FIX] contract: Invalid pricelist field name
pull/152/head
Pedro M. Baeza 7 years ago
committed by GitHub
parent
commit
df98f0d529
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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