mirror of
https://github.com/brain-tec/account_ebics.git
synced 2026-10-16 15:59:09 +00:00
ebics_xfer - fix for BTU with empty suffix
This commit is contained in:
1 parent
369e5416d8
commit
1d620492de
1 file changed
+1
-1
@@ -152,7 +152,7 @@ class EbicsXfer(models.TransientModel):
|
|||||||
)
|
)
|
||||||
if len(upload_formats) > 1:
|
if len(upload_formats) > 1:
|
||||||
upload_formats = upload_formats.filtered(
|
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:
|
if len(upload_formats) == 1:
|
||||||
self.format_id = upload_formats
|
self.format_id = upload_formats
|
||||||
|
|||||||
Reference in new issue
Block a user