[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:
Goffin Simon
2016-07-05 12:34:45 +02:00
parent 549ea7a886
commit f7263dac30
+2 -3
View File
@@ -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,