mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-08-16 23:55:37 +00:00
[15.0]account_ebics_oe_statement_import - fix handling of notifications
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Copyright 2020-2022 Noviat.
|
||||
# Copyright 2020-2023 Noviat.
|
||||
# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl).
|
||||
|
||||
{
|
||||
"name": "account_ebics with Odoo Enterprise Bank Statement Import",
|
||||
"summary": "Use Odoo Enterprise Bank Statement Import with account_ebics",
|
||||
"version": "15.0.1.0.0",
|
||||
"version": "15.0.1.0.1",
|
||||
"author": "Noviat",
|
||||
"website": "https://www.noviat.com/",
|
||||
"category": "Hidden",
|
||||
|
@@ -1,4 +1,4 @@
|
||||
# Copyright 2009-2020 Noviat.
|
||||
# Copyright 2009-2023 Noviat.
|
||||
# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl).
|
||||
|
||||
import logging
|
||||
@@ -53,8 +53,13 @@ class AccountBankStatementImport(models.TransientModel):
|
||||
break
|
||||
if not transactions:
|
||||
message = _("This file doesn't contain any transaction.")
|
||||
st_ids = []
|
||||
st_line_ids = []
|
||||
notifications = {"type": "warning", "message": message, "details": ""}
|
||||
return st_line_ids, [notifications]
|
||||
notifications = {
|
||||
"type": "warning",
|
||||
"message": message,
|
||||
"details": {"name": "", "model": "", "ids": []},
|
||||
}
|
||||
return st_ids, st_line_ids, [notifications]
|
||||
|
||||
return super()._create_bank_statements(stmts_vals)
|
||||
|
Reference in New Issue
Block a user