Merge pull request #58 from Noviat/17.0

Syncing from upstream Noviat/account_ebics (17.0)
This commit is contained in:
braintec 2025-03-04 01:16:21 +01:00 committed by GitHub
commit 51698ee318
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -369,8 +369,7 @@ class EbicsFile(models.Model):
Statements without transactions are removed.
"""
datas = []
file_data = base64.b64decode(self.data)
file_data.replace(b"\n", b"").replace(b"\r", b"")
file_data = base64.b64decode(self.data).replace(b"\n", b"").replace(b"\r", b"")
if len(file_data) % 120:
message = _(
"Incorrect CFONB120 file:\n"