From c29a0ce7f86bce0067460a9069ea78ff5a107210 Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Mon, 26 Mar 2018 19:59:06 +0200 Subject: [PATCH] [FIX] contract: Inverse of price unit referred to single record --- contract/__manifest__.py | 2 +- contract/models/account_analytic_invoice_line.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contract/__manifest__.py b/contract/__manifest__.py index ba9acff6..bb05c382 100644 --- a/contract/__manifest__.py +++ b/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, " diff --git a/contract/models/account_analytic_invoice_line.py b/contract/models/account_analytic_invoice_line.py index 760e3f88..68e693c5 100644 --- a/contract/models/account_analytic_invoice_line.py +++ b/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')