Skip to content
Snippets Groups Projects
Commit 9b9859a2 authored by Jordi Ballester Alomar's avatar Jordi Ballester Alomar
Browse files

[FIX] account_bank_statement_import: use the journal's company currency if...

[FIX] account_bank_statement_import: use the journal's company currency if none is defined in the journal

closes odoo/odoo#121293

Signed-off-by: default avatarQuentin De Paoli <qdp@odoo.com>
parent 4ab8b28b
No related branches found
No related tags found
No related merge requests found
......@@ -172,7 +172,7 @@ class AccountBankStatementImport(models.TransientModel):
# If importing into an existing journal, its currency must be the same as the bank statement
if journal:
journal_currency = journal.currency_id
journal_currency = journal.currency_id or journal.company_id.currency_id
if currency is None:
currency = journal_currency
if currency and currency != journal_currency:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment