mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 20:52:04 +00:00
Merge branch '16-fix-oca-notif' into '16.0'
[IMP] account_ebics 16.0 : bump module version See merge request Noviat/Noviat_Generic/accounting-ebics!66
This commit is contained in:
commit
8e50d65885
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "EBICS banking protocol",
|
"name": "EBICS banking protocol",
|
||||||
"version": "16.0.1.10.2",
|
"version": "16.0.1.10.3",
|
||||||
"license": "LGPL-3",
|
"license": "LGPL-3",
|
||||||
"author": "Noviat",
|
"author": "Noviat",
|
||||||
"website": "https://www.noviat.com/",
|
"website": "https://www.noviat.com/",
|
||||||
|
@ -253,14 +253,17 @@ class EbicsFile(models.Model):
|
|||||||
errors = []
|
errors = []
|
||||||
warnings = []
|
warnings = []
|
||||||
for notif in notifications:
|
for notif in notifications:
|
||||||
if notif["type"] == "error":
|
if isinstance(notif, dict) and notif["type"] == "error":
|
||||||
error_cnt += 1
|
error_cnt += 1
|
||||||
parts = [notif[k] for k in notif if k in ("message", "details")]
|
parts = [notif[k] for k in notif if k in ("message", "details")]
|
||||||
errors.append("\n".join(parts))
|
errors.append("\n".join(parts))
|
||||||
elif notif["type"] == "warning":
|
elif isinstance(notif, dict) and notif["type"] == "warning":
|
||||||
warning_cnt += 1
|
warning_cnt += 1
|
||||||
parts = [notif[k] for k in notif if k in ("message", "details")]
|
parts = [notif[k] for k in notif if k in ("message", "details")]
|
||||||
warnings.append("\n".join(parts))
|
warnings.append("\n".join(parts))
|
||||||
|
elif isinstance(notif, str):
|
||||||
|
warning_cnt += 1
|
||||||
|
warnings.append(notif + "\n")
|
||||||
|
|
||||||
self.note_process += _("Process file %(fn)s results:", fn=self.name)
|
self.note_process += _("Process file %(fn)s results:", fn=self.name)
|
||||||
if error_cnt:
|
if error_cnt:
|
||||||
|
Loading…
Reference in New Issue
Block a user