mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user