mirror of
https://github.com/brain-tec/account_ebics.git
synced 2024-11-23 12:42:04 +00:00
commit
c36fb9c4e7
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user