diff options
| author | qdp-odoo <qdp@odoo.com> | 2016-01-05 17:47:50 +0100 |
|---|---|---|
| committer | qdp-odoo <qdp@odoo.com> | 2016-01-05 17:47:55 +0100 |
| commit | c649bb0df61eb19de510992cc5f2200fef89cb82 (patch) | |
| tree | ffc8c51e5f6b9c97caaf68d3cf3ea5ff5ebdef9e | |
| parent | c043025e5d765a8ca49d88b7cbff37ecff8657bc (diff) | |
[FIX] account: changing the account on invoices doesn't reset the unit price anymore if it was set (and modified previously by the salesman)
| -rw-r--r-- | addons/account/models/account_invoice.py | 2 |
1 files changed, 1 insertions, 1 deletions
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') |
