Skip to content

Commit

Permalink
[FIX] Replace removed compute method by _convert
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-dacosta committed Feb 10, 2025
1 parent 4ea691c commit 56f9072
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions account_reconcile_oca/models/account_bank_statement_line.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,11 @@ def _reconcile_data_by_model(self, data, reconcile_model, reconcile_auxiliary_id
new_line = line.copy()
amount = line.get("balance")
if self.foreign_currency_id:
amount = self.foreign_currency_id.compute(
amount, self.journal_id.currency_id or self.company_currency_id
amount = self.foreign_currency_id._convert(
amount,
self.journal_id.currency_id or self.company_currency_id,
self.company_id,
self.date,
)
if currency != self.company_id.currency_id:
currency_amount = self.company_id.currency_id._convert(
Expand Down

0 comments on commit 56f9072

Please sign in to comment.