From c649bb0df61eb19de510992cc5f2200fef89cb82 Mon Sep 17 00:00:00 2001 From: qdp-odoo Date: Tue, 5 Jan 2016 17:47:50 +0100 Subject: [PATCH] [FIX] account: changing the account on invoices doesn't reset the unit price anymore if it was set (and modified previously by the salesman) --- addons/account/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index db4f72dcca6..9d9d9464ceb 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -1162,7 +1162,7 @@ class AccountInvoiceLine(models.Model): if not self.product_id: fpos = self.invoice_id.fiscal_position_id self.invoice_line_tax_ids = fpos.map_tax(self.account_id.tax_ids).ids - else: + elif not self.price_unit: self._set_taxes() @api.onchange('uom_id')