mirror of
https://github.com/brain-tec/account_ebics.git
synced 2025-09-09 03:00:54 +00:00
Merge pull request #72 from Noviat/18.0
Syncing from upstream Noviat/account_ebics (18.0)
This commit is contained in:
@@ -15,7 +15,7 @@ Available addons
|
||||
----------------
|
||||
addon | version | maintainers | summary
|
||||
--- | --- | --- | ---
|
||||
[account_ebics](account_ebics/) | 18.0.1.0.2 | | EBICS banking protocol
|
||||
[account_ebics](account_ebics/) | 18.0.1.0.3 | | EBICS banking protocol
|
||||
[account_ebics_batch](account_ebics_batch/) | 18.0.1.0.0 | | EBICS Files automated import and processing
|
||||
[account_ebics_batch_payment](account_ebics_batch_payment/) | 18.0.1.0.0 | | Upload Batch Payment via EBICS
|
||||
[account_ebics_oca_statement_import](account_ebics_oca_statement_import/) | 18.0.1.0.0 | | Use OCA Bank Statement Import with account_ebics
|
||||
|
@@ -3,7 +3,7 @@
|
||||
|
||||
{
|
||||
"name": "EBICS banking protocol",
|
||||
"version": "18.0.1.0.2",
|
||||
"version": "18.0.1.0.3",
|
||||
"license": "LGPL-3",
|
||||
"author": "Noviat",
|
||||
"website": "https://www.noviat.com/",
|
||||
|
@@ -258,14 +258,18 @@ class EbicsFile(models.Model):
|
||||
errors = []
|
||||
warnings = []
|
||||
for notif in notifications:
|
||||
if isinstance(notif, dict) and notif["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":
|
||||
warning_cnt += 1
|
||||
parts = [notif[k] for k in notif if k in ("message", "details")]
|
||||
warnings.append("\n".join(parts))
|
||||
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) + "\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) + "\n")
|
||||
else:
|
||||
warning_cnt += 1
|
||||
warnings.append(": ".join([*next(iter(notif.items()))]) + "\n")
|
||||
elif isinstance(notif, str):
|
||||
warning_cnt += 1
|
||||
warnings.append(notif + "\n")
|
||||
|
Reference in New Issue
Block a user