Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] [FIX] Ricevere fatture elettroniche in base64 via PEC #2915 #3500

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion l10n_it_fatturapa_pec/models/mail_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Copyright 2018 Sergio Corato (https://efatto.it)
# Copyright 2018 Lorenzo Battistini <https://github.com/eLBati>

import base64
import logging
import re

Expand Down Expand Up @@ -220,7 +221,7 @@ def create_fatturapa_attachment_in(self, attachment, message_dict=None):
# See check_fetch_pec_server_id
company_id = sdi_chan.company_id.id
file_name_content_dict = {
attachment.name: attachment.datas,
attachment.name: base64.b64decode(attachment.datas),
}
default_values = {
"company_id": company_id,
Expand Down
Loading
Loading