From 7c4fe6b3f253a257582cf8cd0cbc56337a10d427 Mon Sep 17 00:00:00 2001 From: Jigar Vaghela Date: Tue, 16 Oct 2018 10:17:18 +0000 Subject: [PATCH] [FIX] account: invoice validation with complex taxes with children The field tax_ids on account.move.line created from an invoice was incorrect in case of a tax with children with type_tax_use!= 'none'. Hence, the tax_base_amount and the whole tax statement was wrong in that specific case. Was part of (although not related) the PR #26262 --- addons/account/models/account_invoice.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/account/models/account_invoice.py b/addons/account/models/account_invoice.py index accec89538a..a49674d224e 100644 --- a/addons/account/models/account_invoice.py +++ b/addons/account/models/account_invoice.py @@ -1087,8 +1087,7 @@ class AccountInvoice(models.Model): for tax in line.invoice_line_tax_ids: tax_ids.append((4, tax.id, None)) for child in tax.children_tax_ids: - if child.type_tax_use != 'none': - tax_ids.append((4, child.id, None)) + tax_ids.append((4, child.id, None)) analytic_tag_ids = [(4, analytic_tag.id, None) for analytic_tag in line.analytic_tag_ids] move_line_dict = {