Merge pull request #71 from Noviat/17.0

Syncing from upstream Noviat/account_ebics (17.0)
This commit is contained in:
braintec
2025-09-06 01:16:28 +02:00
committed by GitHub
3 changed files with 14 additions and 10 deletions

View File

@@ -15,7 +15,7 @@ Available addons
----------------
addon | version | maintainers | summary
--- | --- | --- | ---
[account_ebics](account_ebics/) | 17.0.1.2.1 | | EBICS banking protocol
[account_ebics](account_ebics/) | 17.0.1.2.2 | | EBICS banking protocol
[account_ebics_batch](account_ebics_batch/) | 17.0.1.0.1 | | EBICS Files automated import and processing
[account_ebics_batch_payment](account_ebics_batch_payment/) | 17.0.1.0.3 | | Upload Batch Payment via EBICS
[account_ebics_oca_statement_import](account_ebics_oca_statement_import/) | 17.0.1.0.1 | | Use OCA Bank Statement Import with account_ebics

View File

@@ -3,7 +3,7 @@
{
"name": "EBICS banking protocol",
"version": "17.0.1.2.1",
"version": "17.0.1.2.2",
"license": "LGPL-3",
"author": "Noviat",
"website": "https://www.noviat.com/",

View File

@@ -256,14 +256,18 @@ class EbicsFile(models.Model):
errors = []
warnings = []
for notif in notifications:
if isinstance(notif, dict) and notif["type"] == "error":
if isinstance(notif, dict):
if notif.get("type") == "error":
error_cnt += 1
parts = [notif[k] for k in notif if k in ("message", "details")]
errors.append("\n".join(parts))
elif isinstance(notif, dict) and notif["type"] == "warning":
errors.append("\n".join(parts) + "\n")
elif notif.get("type") == "warning":
warning_cnt += 1
parts = [notif[k] for k in notif if k in ("message", "details")]
warnings.append("\n".join(parts))
warnings.append("\n".join(parts) + "\n")
else:
warning_cnt += 1
warnings.append(": ".join([*next(iter(notif.items()))]) + "\n")
elif isinstance(notif, str):
warning_cnt += 1
warnings.append(notif + "\n")