[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 <jco@odoo.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user