diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2016-05-11 10:41:23 +0200 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2016-05-11 11:10:44 +0200 |
| commit | fe413bc8be727bf061c7fdf4e4de656807e46102 (patch) | |
| tree | 552e5298a8e925c3e1953d60fba024bc0c93762f | |
| parent | c162e3489f64bb7eee244e58f5498fc0ab71f51f (diff) | |
[FIX] purchase: taxes from PO
If a user removes the taxes on a PO line, the product taxes will be
added back when the invoice is created.
opw-676858
| -rw-r--r-- | addons/purchase/invoice.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/purchase/invoice.py b/addons/purchase/invoice.py index 4d478a99437..15f4d3ac9d3 100644 --- a/addons/purchase/invoice.py +++ b/addons/purchase/invoice.py @@ -49,7 +49,7 @@ class AccountInvoice(models.Model): qty = line.qty_received - line.qty_invoiced if float_compare(qty, 0.0, precision_rounding=line.product_uom.rounding) <= 0: qty = 0.0 - taxes = line.taxes_id or line.product_id.supplier_taxes_id + taxes = line.taxes_id invoice_line_tax_ids = self.purchase_id.fiscal_position_id.map_tax(taxes) data = { 'purchase_line_id': line.id, |
