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