From 2155c5a08d4d951b2e337e3d7fd9bf6a15bafc57 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Mon, 10 Feb 2025 09:48:55 +0100 Subject: [PATCH] [FIX] Replace removed compute method by _convert --- .../models/account_bank_statement_line.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/account_reconcile_oca/models/account_bank_statement_line.py b/account_reconcile_oca/models/account_bank_statement_line.py index 2b803262..49ee3662 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -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(