Skip to content

Commit

Permalink
Merge PR #2916 into 12.0
Browse files Browse the repository at this point in the history
Signed-off-by primes2h
  • Loading branch information
OCA-git-bot committed Feb 27, 2023
2 parents 0b7527c + c51985b commit dd764bb
Show file tree
Hide file tree
Showing 4 changed files with 549 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 @@ -184,7 +185,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 dd764bb

Please sign in to comment.