Skip to content

Commit

Permalink
[FIX] l10n_do_accounting: ValueError: Expected singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-pcg committed Apr 15, 2024
1 parent 0941636 commit 5e83e83
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion l10n_do_accounting/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"category": "Localization",
"license": "LGPL-3",
"website": "https://github.com/odoo-dominicana",
"version": "16.0.1.5.3",
"version": "16.0.1.5.4",
# any module necessary for this one to work correctly
"depends": ["l10n_latam_invoice_document", "l10n_do"],
# always loaded
Expand Down
4 changes: 3 additions & 1 deletion l10n_do_accounting/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,9 @@ def _get_l10n_do_amounts(self):
"""
self.ensure_one()

return self.line_ids._get_l10n_do_line_amounts()
return self.line_ids.filtered(
lambda line: line.currency_id == self.currency_id
)._get_l10n_do_line_amounts()

@api.depends(
"company_id",
Expand Down

0 comments on commit 5e83e83

Please sign in to comment.