From 6a03030821beec278a7dbb0dc0c2cf096b6b7c47 Mon Sep 17 00:00:00 2001 From: Katherine Zaoral Date: Tue, 7 Feb 2023 10:59:57 -0300 Subject: [PATCH] [FIX] l10n_uy_reports: logic with UY code --- l10n_uy_reports/wizards/form_report_wiz.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/l10n_uy_reports/wizards/form_report_wiz.py b/l10n_uy_reports/wizards/form_report_wiz.py index 8780a0d4..0e643bfb 100644 --- a/l10n_uy_reports/wizards/form_report_wiz.py +++ b/l10n_uy_reports/wizards/form_report_wiz.py @@ -85,9 +85,9 @@ def _get_form_2181_data(self): UYU_currency = self.env.ref('base.UYU') line_code = {} - taxes = invoices.mapped('line_ids.tax_ids').filtered(lambda x: x.l10n_uy_dgi_code.form == "2181") + taxes = invoices.mapped('line_ids.tax_ids').filtered(lambda x: x.tax_group_id.form == "2181") for tax in taxes: - line_code.update({tax: tax.l10n_uy_dgi_code.code}) + line_code.update({tax: tax.tax_group_id.l10n_uy_code}) tax_code = {} taxes_group_ids = taxes.mapped('tax_group_id').ids