From cbfaa94e8f7fc62beb46bba2c954b4803ed2ef3d Mon Sep 17 00:00:00 2001 From: Juan Jose Scarafia Date: Mon, 10 Jan 2022 18:21:53 +0000 Subject: [PATCH] [FIX] l10n_ar: vat inclusion on invoice report Prior to this commit the line amounts on the invoice report where including the VAT always. With this change we only include VAT if invoice needs to include it (_l10n_ar_include_vat) closes odoo/odoo#82740 X-original-commit: 47996fdd4e8c79f876d669f73b18c6046a83c95e Signed-off-by: Josse Colpaert --- addons/l10n_ar/models/account_move_line.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/l10n_ar/models/account_move_line.py b/addons/l10n_ar/models/account_move_line.py index 043a30718c5..918bb6a8f29 100644 --- a/addons/l10n_ar/models/account_move_line.py +++ b/addons/l10n_ar/models/account_move_line.py @@ -9,7 +9,7 @@ class AccountMoveLine(models.Model): def _l10n_ar_prices_and_taxes(self): self.ensure_one() invoice = self.move_id - included_taxes = self.tax_ids.filtered('tax_group_id.l10n_ar_vat_afip_code') if self.move_id._l10n_ar_include_vat() else self.tax_ids + included_taxes = self.tax_ids.filtered('tax_group_id.l10n_ar_vat_afip_code') if self.move_id._l10n_ar_include_vat() else False if not included_taxes: price_unit = self.tax_ids.with_context(round=False).compute_all( self.price_unit, invoice.currency_id, 1.0, self.product_id, invoice.partner_id)