From f1f9cfd2f8d710180125c0b27e2ccb30f855e03b Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 7 Mar 2023 16:39:21 +0100 Subject: [PATCH 1/2] ebics_xfer - fix for BTU with empty suffix --- account_ebics/wizards/ebics_xfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account_ebics/wizards/ebics_xfer.py b/account_ebics/wizards/ebics_xfer.py index c914cbf..5bc4a70 100644 --- a/account_ebics/wizards/ebics_xfer.py +++ b/account_ebics/wizards/ebics_xfer.py @@ -152,7 +152,7 @@ class EbicsXfer(models.TransientModel): ) if len(upload_formats) > 1: upload_formats = upload_formats.filtered( - lambda r: self.upload_fname.endswith(r.suffix) + lambda r: self.upload_fname.endswith(r.suffix or "") ) if len(upload_formats) == 1: self.format_id = upload_formats From ba79a01f496e2e31978926476bb8966a17d4ba1b Mon Sep 17 00:00:00 2001 From: Luc De Meyer Date: Tue, 7 Mar 2023 16:48:57 +0100 Subject: [PATCH 2/2] [IMP] EBICS File Format - improve name_get --- account_ebics/models/ebics_file_format.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/account_ebics/models/ebics_file_format.py b/account_ebics/models/ebics_file_format.py index a4f4081..c3b8d7e 100644 --- a/account_ebics/models/ebics_file_format.py +++ b/account_ebics/models/ebics_file_format.py @@ -114,5 +114,7 @@ class EbicsFileFormat(models.Model): res = [] for rec in self: name = rec.ebics_version == "2" and rec.name or rec.btf_message + if rec.description: + name += " - " + rec.description res.append((rec.id, name)) return res