diff --git a/plm/models/ir_attachment.py b/plm/models/ir_attachment.py index d2b516ee..d4819c02 100755 --- a/plm/models/ir_attachment.py +++ b/plm/models/ir_attachment.py @@ -21,6 +21,7 @@ import string import os import io +import binascii from base64io import Base64IO import time import json @@ -121,6 +122,7 @@ def _compute_datas(self): return for attach in self: + attach.datas = binascii.a2b_base64(attach.raw or b'') attach.datas = self.get_stream_b64encode(attach.raw or b'') def get_stream_b64encode(self, from_stream):