+
+
diff --git a/account_statement_import/templates/assets.xml b/account_statement_import/templates/assets.xml
new file mode 100644
index 00000000..ae901090
--- /dev/null
+++ b/account_statement_import/templates/assets.xml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
diff --git a/account_statement_import/wizard/account_statement_import.py b/account_statement_import/wizard/account_statement_import.py
index d33d5a17..2a72221c 100644
--- a/account_statement_import/wizard/account_statement_import.py
+++ b/account_statement_import/wizard/account_statement_import.py
@@ -220,6 +220,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 e1a273fd..8bfd4b7b 100644
--- a/account_statement_import/wizard/account_statement_import_view.xml
+++ b/account_statement_import/wizard/account_statement_import_view.xml
@@ -39,4 +39,11 @@
new
+
+ Import Statement
+
+
+
+
+