Skip to content

Commit c874b7c

Browse files
committed
[FIX] l10n_es_facturae: decode attachment file in bytes
1 parent 5fd4800 commit c874b7c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

l10n_es_facturae/models/account_move.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def _get_facturae_move_attachments(self):
225225
description, content_type = attachment.filename.rsplit(".", 1)
226226
result.append(
227227
{
228-
"data": attachment.file,
228+
"data": attachment.file.decode("utf-8"),
229229
"content_type": content_type,
230230
"encoding": "BASE64",
231231
"description": description,

0 commit comments

Comments
 (0)