Skip to content

Commit

Permalink
[FIX] Ricevere fatture elettroniche in base64 via PEC #2915
Browse files Browse the repository at this point in the history
  • Loading branch information
odooNextev committed Jul 21, 2023
1 parent 6bf3cad commit 55ea093
Show file tree
Hide file tree
Showing 4 changed files with 550 additions and 3 deletions.
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

0 comments on commit 55ea093

Please sign in to comment.