[FIX] account_reconciliation_widget: Show correct currency

When reconciling bank statement lines in a foreign currency,
it shows amounts in a company's currency while the symbol
is shown of foreign currency. Wrong currency appears on counterpart
lines and open balance line.

The wrong currency symbol only effects representation in the UI.
When reconciliation is validated, it sets company's currency on
account move lines.
This commit is contained in:
Giedrius Slavinskas
2023-06-23 20:40:28 +03:00
parent f2d82cd0a0
commit 2601bf53e2

View File

@@ -1050,7 +1050,7 @@ class AccountReconciliation(models.AbstractModel):
"date": format_date(self.env, st_line.date),
"amount": amount,
"amount_str": amount_str, # Amount in the statement line currency
"currency_id": st_line_currency.id, # Currency according to statement line
"currency_id": (st_line.currency_id or statement_currency).id,
"partner_id": st_line.partner_id.id,
"journal_id": st_line.journal_id.id,
"statement_id": st_line.statement_id.id,