[FIX] Replace removed compute method by _convert

pull/808/head
Florian da Costa 2025-02-10 09:48:55 +01:00 committed by Jordi Ballester Alomar
parent dbd55e8fa5
commit 2155c5a08d
1 changed files with 5 additions and 2 deletions

View File

@ -569,8 +569,11 @@ class AccountBankStatementLine(models.Model):
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(