Skip to content

Commit 6a03030

Browse files
committed
[FIX] l10n_uy_reports: logic with UY code
1 parent db63755 commit 6a03030

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

l10n_uy_reports/wizards/form_report_wiz.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ def _get_form_2181_data(self):
8585
UYU_currency = self.env.ref('base.UYU')
8686

8787
line_code = {}
88-
taxes = invoices.mapped('line_ids.tax_ids').filtered(lambda x: x.l10n_uy_dgi_code.form == "2181")
88+
taxes = invoices.mapped('line_ids.tax_ids').filtered(lambda x: x.tax_group_id.form == "2181")
8989
for tax in taxes:
90-
line_code.update({tax: tax.l10n_uy_dgi_code.code})
90+
line_code.update({tax: tax.tax_group_id.l10n_uy_code})
9191

9292
tax_code = {}
9393
taxes_group_ids = taxes.mapped('tax_group_id').ids

0 commit comments

Comments
 (0)