[FIX] account_reconcile_oca : exchange rate gain/loss currency and amount

If currency amount is not 0, the suspense line will have wrong amount
pull/808/head
Florian da Costa 2024-11-05 13:00:48 +01:00 committed by Jordi Ballester Alomar
parent 829299dffe
commit 4fe0125cc9
1 changed files with 2 additions and 2 deletions

View File

@ -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