[FIX] l10n_latam_invoice_document: IVA on b2c invoices
For b2c invoices we mustn't show the IVA information on the reports closes odoo/odoo#68758 X-original-commit: 4e31502f317fabc2004bd6db32883ce357563c57 Signed-off-by: Josse Colpaert <jco@openerp.com>
This commit is contained in:
committed by
Juan Jose Scarafia
parent
d0fdbd5ed7
commit
e658ca9100
@@ -250,7 +250,7 @@ class AccountMove(models.Model):
|
||||
# generate a tax line.
|
||||
zero_taxes = set()
|
||||
for line in move.line_ids:
|
||||
for tax in line.tax_ids.flatten_taxes_hierarchy():
|
||||
for tax in line.l10n_latam_tax_ids.flatten_taxes_hierarchy():
|
||||
if tax.tax_group_id not in res or tax.id in zero_taxes:
|
||||
res.setdefault(tax.tax_group_id, {'base': 0.0, 'amount': 0.0})
|
||||
res[tax.tax_group_id]['base'] += tax_balance_multiplicator * (line.amount_currency if line.currency_id else line.balance)
|
||||
|
||||
Reference in New Issue
Block a user