fix cfonb return line bug

This commit is contained in:
Olivier Doucet authored and Luc De Meyer committed 2026-10-24 12:01:04 +02:00
1 parent db49352960
commit 878198f9f1
1 file changed
+1 -2
+1 -2
View File
@@ -372,8 +372,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 = self.env._(
"Incorrect CFONB120 file:\n"