Skip to content

Commit

Permalink
[FIX] l10n_uy_reports: logic with UY code
Browse files Browse the repository at this point in the history
  • Loading branch information
zaoral committed Feb 7, 2023
1 parent db63755 commit 6a03030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions l10n_uy_reports/wizards/form_report_wiz.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a03030

Please sign in to comment.