From f7263dac3062ab14095b91b259c4ef4fa0b6ccd5 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 5 Jul 2016 11:35:19 +0200 Subject: [PATCH] [FIX] account: tax_line_move_line_get The "else" has to be removed because if a tax group named "X" is the group of tax "A" and "B", the journal item corresponding to the invoice line has the taxes "A", "B", and "X" set. Introduced by 5a5ac1d7a5f0f4110c67b7e87dd882274c29a325 --- addons/account/models/account_invoice.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index 8c0f643bc6f..45cace28c39 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -678,9 +678,8 @@ class AccountInvoice(models.Model): tax = tax_line.tax_id if tax.amount_type == "group": for child_tax in tax.children_tax_ids: - done_taxes.append(tax.id) - else: - done_taxes.append(tax.id) + done_taxes.append(child_tax.id) + done_taxes.append(tax.id) res.append({ 'invoice_tax_line_id': tax_line.id, 'tax_line_id': tax_line.tax_id.id,