mirror of
https://github.com/brain-tec/account_ebics.git
synced 2026-04-26 07:36:51 +00:00
fix cfonb return line bug
This commit is contained in:
committed by
Luc De Meyer
parent
dbcebd6e38
commit
bbdd75b556
@@ -372,8 +372,7 @@ class EbicsFile(models.Model):
|
|||||||
Statements without transactions are removed.
|
Statements without transactions are removed.
|
||||||
"""
|
"""
|
||||||
datas = []
|
datas = []
|
||||||
file_data = base64.b64decode(self.data)
|
file_data = base64.b64decode(self.data).replace(b"\n", b"").replace(b"\r", b"")
|
||||||
file_data.replace(b"\n", b"").replace(b"\r", b"")
|
|
||||||
if len(file_data) % 120:
|
if len(file_data) % 120:
|
||||||
message = self.env._(
|
message = self.env._(
|
||||||
"Incorrect CFONB120 file:\n"
|
"Incorrect CFONB120 file:\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user