[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
This commit is contained in:
Nicolas Martinelli
2016-05-11 11:10:44 +02:00
parent c162e3489f
commit fe413bc8be
+1 -1
View File
@@ -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,