diff --git a/account_statement_import/wizard/account_statement_import.py b/account_statement_import/wizard/account_statement_import.py
index 6fc562b4..dc6148e3 100644
--- a/account_statement_import/wizard/account_statement_import.py
+++ b/account_statement_import/wizard/account_statement_import.py
@@ -230,6 +230,15 @@ class AccountStatementImport(models.TransientModel):
],
limit=1,
)
+ journal_id = self.env.context.get("journal_id")
+ if journal_id and journal.id != journal_id:
+ raise UserError(
+ _(
+ "The journal found for the file is not consistent with the "
+ "selected journal. You should use the proper journal or "
+ "use the generic button on the top of the Accounting Dashboard"
+ )
+ )
if not journal:
bank_accounts = self.env["res.partner.bank"].search(
diff --git a/account_statement_import/wizard/account_statement_import_view.xml b/account_statement_import/wizard/account_statement_import_view.xml
index 56b0b714..f45c48ba 100644
--- a/account_statement_import/wizard/account_statement_import_view.xml
+++ b/account_statement_import/wizard/account_statement_import_view.xml
@@ -39,7 +39,6 @@
new
-