mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-08-14 14:45:36 +00:00
Merge pull request #81 from Noviat/14-imp-no-transaction-handling
14 imp no transaction handling
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
# Copyright 2020 Noviat.
|
||||
# Copyright 2009-2023 Noviat.
|
||||
# License LGPL-3 or later (http://www.gnu.org/licenses/lpgl).
|
||||
|
||||
{
|
||||
"name": "account_ebics with OCA Bank Statement Imoort",
|
||||
"summary": "Use OCA Bank Statement Import with account_ebics",
|
||||
"version": "14.0.1.0.0",
|
||||
"version": "14.0.1.0.1",
|
||||
"author": "Noviat",
|
||||
"category": "Hidden",
|
||||
"license": "LGPL-3",
|
||||
|
@@ -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,9 @@ class AccountStatementImport(models.TransientModel):
|
||||
break
|
||||
if not transactions:
|
||||
message = _("This file doesn't contain any transaction.")
|
||||
st_line_ids = []
|
||||
notifications = {"type": "warning", "message": message, "details": ""}
|
||||
return st_line_ids, [notifications]
|
||||
result["notifications"].append(
|
||||
{"type": "warning", "message": message, "details": ""}
|
||||
)
|
||||
result["no_transactions"] = True
|
||||
|
||||
return super()._create_bank_statements(stmts_vals, result)
|
||||
|
Reference in New Issue
Block a user