Skip to content

Commit

Permalink
[FIX] l10n_es_facturae: Fixed issue with double Base64 encoding on fa…
Browse files Browse the repository at this point in the history
…cturae attachments

Facturae attachments were double Base64 encoded, requiring two decodings to be accessible.
  • Loading branch information
BernatObrador committed Mar 7, 2025
1 parent c9d875b commit 3fc4571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion l10n_es_facturae/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _get_facturae_move_attachments(self):
description, content_type = attachment.filename.rsplit(".", 1)
result.append(
{
"data": base64.b64encode(attachment.file).decode("utf-8"),
"data": attachment.file.decode("utf-8"),
"content_type": content_type,
"encoding": "BASE64",
"description": description,
Expand Down

0 comments on commit 3fc4571

Please sign in to comment.