[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 5a5ac1d7a5
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user