From 4fe0125cc9b130a08aa19a071024057430410e3e Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Tue, 5 Nov 2024 13:00:48 +0100 Subject: [PATCH] [FIX] account_reconcile_oca : exchange rate gain/loss currency and amount If currency amount is not 0, the suspense line will have wrong amount --- account_reconcile_oca/models/account_bank_statement_line.py | 4 ++-- 1 file changed, 2 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 7ec9e657..d6ba1a25 100644 --- a/account_reconcile_oca/models/account_bank_statement_line.py +++ b/account_reconcile_oca/models/account_bank_statement_line.py @@ -1113,8 +1113,8 @@ class AccountBankStatementLine(models.Model): "debit": amount if amount > 0 else 0.0, "kind": "other", "currency_id": self.company_id.currency_id.id, - "line_currency_id": self.company_id.currency_id.id, - "currency_amount": amount, + "line_currency_id": currency.id, + "currency_amount": 0, } reconcile_auxiliary_id += 1 return reconcile_auxiliary_id, data