Browse Source

[FIX] contract: Inverse of price unit referred to single record

pull/110/head
Pedro M. Baeza 7 years ago
parent
commit
c29a0ce7f8
  1. 2
      contract/__manifest__.py
  2. 2
      contract/models/account_analytic_invoice_line.py

2
contract/__manifest__.py

@ -9,7 +9,7 @@
{
'name': 'Contracts Management - Recurring',
'version': '10.0.4.0.0',
'version': '10.0.4.0.1',
'category': 'Contract Management',
'license': 'AGPL-3',
'author': "OpenERP SA, "

2
contract/models/account_analytic_invoice_line.py

@ -98,7 +98,7 @@ class AccountAnalyticInvoiceLine(models.Model):
def _inverse_price_unit(self):
"""Store the specific price in the no auto-price records."""
for line in self.filtered(lambda x: not x.automatic_price):
line.specific_price = self.price_unit
line.specific_price = line.price_unit
@api.multi
@api.depends('quantity', 'price_unit', 'discount')

Loading…
Cancel
Save