summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJigar Vaghela <jva@odoo.com>2018-10-16 10:17:18 +0000
committerqdp-odoo <qdp@odoo.com>2019-01-18 08:34:56 +0000
commit7c4fe6b3f253a257582cf8cd0cbc56337a10d427 (patch)
treedea1675da19ff57da13e37f60fba36af823b91b6
parent86e90fcbea717c5b3b9e5b75cbbb38950fece1a0 (diff)
[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
-rw-r--r--addons/account/models/account_invoice.py3
1 files changed, 1 insertions, 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 = {