From fe413bc8be727bf061c7fdf4e4de656807e46102 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Wed, 11 May 2016 10:41:23 +0200 Subject: [PATCH] [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 --- addons/purchase/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,