diff --git a/l10n_it_fatturapa_pec/models/mail_thread.py b/l10n_it_fatturapa_pec/models/mail_thread.py index 1ed593f6b6ba..1a5d0bcd7b35 100644 --- a/l10n_it_fatturapa_pec/models/mail_thread.py +++ b/l10n_it_fatturapa_pec/models/mail_thread.py @@ -3,6 +3,7 @@ # Copyright 2018 Sergio Corato (https://efatto.it) # Copyright 2018 Lorenzo Battistini +import base64 import logging import re @@ -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, diff --git a/l10n_it_fatturapa_pec/tests/data/POSTA CERTIFICATA: Invio File 7339338 (base64).txt b/l10n_it_fatturapa_pec/tests/data/POSTA CERTIFICATA: Invio File 7339338 (base64).txt new file mode 100644 index 000000000000..1dd8c07b39e0 --- /dev/null +++ b/l10n_it_fatturapa_pec/tests/data/POSTA CERTIFICATA: Invio File 7339338 (base64).txt @@ -0,0 +1,519 @@ +X-Fattura-PA: Yes +Return-Path: +Delivered-To: l.battistini@pec.it +Received: from mxpecgo03.pec.ad.aruba.it (localhost [127.0.0.1]) + by mxpecgo03.pec.ad.aruba.it (lmtpd) with LMTP id 24311.002; + Sat, 8 Dec 2018 12:26:18 +0100 (CET) +Received: from mx.pec.aruba.it (localhost [127.0.0.1]) + by mx.pec.aruba.it (Postfix) with ESMTP id 43Bn8p4Bq7z2LKNvP + for ; Sat, 8 Dec 2018 12:26:18 +0100 (CET) +Received: from smtps.pec.sogei.it (cmaout.pec.sogei.it [217.175.51.47]) + (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) + (No client certificate requested) + by mx.pec.aruba.it (Postfix) with ESMTPS + for ; Sat, 8 Dec 2018 12:26:18 +0100 (CET) +Received: from PECP-FE03 (localhost [127.0.0.1]) + by smtps.pec.sogei.it (Postfix) with ESMTP id 43Bn8p2fTXzjWx4 + for ; Sat, 8 Dec 2018 12:26:18 +0100 (CET) +Received: from sdibe85p2.srv.sogei.it (sdibe85p2.srv.sogei.it + [26.2.138.207]) by smtp.pec.sogei.it (Postfix) with ESMTPSA id + 43Bn8p0Kh9zjWvq for ; Sat, 8 Dec 2018 12:26:18 +0100 + (CET) +Subject: POSTA CERTIFICATA: Invio File 7339338 (SIMULAZIONE) +X-Riferimento-Message-ID: <4163125586355393.1544268377979@pec.fatturapa.it> +Date: Sat, 8 Dec 2018 12:26:18 +0100 +Reply-To: sdi03@pec.fatturapa.it +To: l.battistini@pec.it +X-Trasporto: posta-certificata +From: "Per conto di: sdi03@pec.fatturapa.it" +X-Tiporicevuta: breve +MIME-Version: 1.0 +Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="sha1"; boundary="----F0ECFFC577E2EBDF94A331C8DE270B55" +Message-ID: + +This is an S/MIME signed message + +------F0ECFFC577E2EBDF94A331C8DE270B55 +Content-Type: multipart/mixed; boundary="----------=_1544268378-17535-8512" +Content-Transfer-Encoding: binary +MIME-Version: 1.0 + +------------=_1544268378-17535-8512 +Content-Type: multipart/alternative; + boundary="----------=_1544268378-17535-8513" +Content-Transfer-Encoding: binary + +------------=_1544268378-17535-8513 +Content-Type: text/plain; charset="iso-8859-1" +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + +Messaggio di posta certificata + + ----- + +Il giorno 08/12/2018 alle ore 12:26:18 (+0100) il messaggio +"Invio File 7339338 (SIMULAZIONE)" e' stato inviato da "sdi03@pec.fatturapa= +.it" +indirizzato a: +l.battistini@pec.it + +Il messaggio originale e' incluso in allegato. +Identificativo messaggio: opec288.20181208122618.17535.2665.1.3@pcert.sogei= +.it + +------------=_1544268378-17535-8513 +Content-Type: text/html; charset="iso-8859-1" +Content-Disposition: inline +Content-Transfer-Encoding: quoted-printable + + +Messaggio di posta certificata + +

Messaggio di posta certificata

+

+Il giorno 08/12/2018 alle ore 12:26:18 (+0100) il messaggio
+"Invio File 7339338 (SIMULAZIONE)" è stato inviato da &quo= +t;sdi03@pec.fatturapa.it"
+indirizzato a:
+l.battistini@pec.it
+ +Il messaggio originale è incluso in allegato.
+Identificativo messaggio: opec288.20181208122618.17535.2665.1.3@pcert.sogei= +.it
+ + + +------------=_1544268378-17535-8513-- + +------------=_1544268378-17535-8512 +Content-Type: application/xml; name="daticert.xml" +Content-Disposition: inline; filename="daticert.xml" +Content-Transfer-Encoding: base64 + +PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHBvc3Rh +Y2VydCB0aXBvPSJwb3N0YS1jZXJ0aWZpY2F0YSIgZXJyb3JlPSJuZXNzdW5v +Ij4KICAgIDxpbnRlc3RhemlvbmU+CiAgICAgICAgPG1pdHRlbnRlPnNkaTAz +QHBlYy5mYXR0dXJhcGEuaXQ8L21pdHRlbnRlPgogICAgICAgIDxkZXN0aW5h +dGFyaSB0aXBvPSJjZXJ0aWZpY2F0byI+bC5iYXR0aXN0aW5pQHBlYy5pdDwv +ZGVzdGluYXRhcmk+CiAgICAgICAgPHJpc3Bvc3RlPnNkaTAzQHBlYy5mYXR0 +dXJhcGEuaXQ8L3Jpc3Bvc3RlPgogICAgICAgIDxvZ2dldHRvPkludmlvIEZp +bGUgNzMzOTMzOCAoU0lNVUxBWklPTkUpPC9vZ2dldHRvPgogICAgPC9pbnRl +c3RhemlvbmU+CiAgICA8ZGF0aT4KICAgICAgICA8Z2VzdG9yZS1lbWl0dGVu +dGU+U29nZWkgU3BBPC9nZXN0b3JlLWVtaXR0ZW50ZT4KICAgICAgICA8ZGF0 +YSB6b25hPSIrMDEwMCI+CiAgICAgICAgICAgIDxnaW9ybm8+MDgvMTIvMjAx +ODwvZ2lvcm5vPgogICAgICAgICAgICA8b3JhPjEyOjI2OjE4PC9vcmE+CiAg +ICAgICAgPC9kYXRhPgogICAgICAgIDxpZGVudGlmaWNhdGl2bz5vcGVjMjg4 +LjIwMTgxMjA4MTIyNjE4LjE3NTM1LjI2NjUuMS4zQHBjZXJ0LnNvZ2VpLml0 +PC9pZGVudGlmaWNhdGl2bz4KICAgICAgICA8bXNnaWQ+Jmx0OzQxNjMxMjU1 +ODYzNTUzOTMuMTU0NDI2ODM3Nzk3OUBwZWMuZmF0dHVyYXBhLml0Jmd0Ozwv +bXNnaWQ+CiAgICAgICAgPHJpY2V2dXRhIHRpcG89ImJyZXZlIiAvPgogICAg +PC9kYXRpPgo8L3Bvc3RhY2VydD4K + +------------=_1544268378-17535-8512 +Content-Type: message/rfc822; name="postacert.eml" +Content-Disposition: inline; filename="postacert.eml" +Content-Transfer-Encoding: 7bit + +Received: from sdibe85p2.srv.sogei.it (sdibe85p2.srv.sogei.it [26.2.138.207]) + by smtp.pec.sogei.it (Postfix) with ESMTPSA id 43Bn8p0Kh9zjWvq + for ; Sat, 8 Dec 2018 12:26:18 +0100 (CET) +From: sdi03@pec.fatturapa.it +To: l.battistini@pec.it +Subject: Invio File 7339338 (SIMULAZIONE) +MIME-Version: 1.0 +Content-Type: multipart/mixed; + boundary="----=_Part_115220_-1210040643.1544268377979" +X-TipoRicevuta: breve +Date: Sat, 8 Dec 2018 12:26:18 +0100 (CET) +Message-ID: +X-Riferimento-Message-ID: <4163125586355393.1544268377979@pec.fatturapa.it> + +------=_Part_115220_-1210040643.1544268377979 +Content-Type: application/octet-stream; name=IT02652600210_00007_MT_002.xml +Content-Transfer-Encoding: 7bit +Content-Disposition: attachment; filename=IT02652600210_00007_MT_002.xml + + + + 7339338 + IT01234567890_FPR04.xml.p7m + FPR12 + 1 + 1809491993 + + +------=_Part_115220_-1210040643.1544268377979 +Content-Type: application/octet-stream; name=IT01234567890_FPR04.xml.p7m +Content-Disposition: attachment; filename=IT01234567890_FPR04.xml.p7m + +MIIkBgYJKoZIhvcNAQcCoIIj9zCCI/MCAQExDTALBglghkgBZQMEAgEwghm3Bgk +qhkiG9w0BBwGgghmoBIIZpDw/eG1sIHZlcnNpb249IjEuMCIgZW5jb2Rpbmc9Il +VURi04Ij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c2lvbmU+CiAgI +CA8Q2VkZW50ZVByZXN0YXRvcmU+CiAgICAgIDxEYXRpQW5hZ3JhZmljaT4KICAg +ICAgICA8SWRGaXNjYWxlSVZBPgogICAgICAgICAgPElkUGFlc2U+SVQ8L0lkUGF +lc2U+CiAgICAgICAgICA8SWRDb2RpY2U+MDI3ODA3OTAxMDc8L0lkQ29kaWNlPg +ogICAgICAgIDwvSWRGaXNjYWxlSVZBPgogICAgICAgIDxBbmFncmFmaWNhPgogI +CAgICAgICAgPERlbm9taW5hemlvbmU+U09DSUVUQScgQUxQSEEgU1JMPC9EZW5v +bWluYXppb25lPgogICAgICAgIDwvQW5hZ3JhZmljYT4KICAgICAgICA8UmVnaW1 +lRmlzY2FsZT5SRjAxPC9SZWdpbWVGaXNjYWxlPgogICAgICA8L0RhdGlBbmFncm +FmaWNpPgogICAgICA8U2VkZT4KICAgICAgICA8SW5kaXJpenpvPlZJQUxFIFJPT +UEgNTQzPC9JbmRpcml6em8+CiAgICAgICAgPENBUD4wNzEwMDwvQ0FQPgogICAg +ICAgIDxDb211bmU+U0FTU0FSSTwvQ29tdW5lPgogICAgICAgIDxQcm92aW5jaWE ++U1M8L1Byb3ZpbmNpYT4KICAgICAgICA8TmF6aW9uZT5JVDwvTmF6aW9uZT4KIC +AgICAgPC9TZWRlPgogICAgPC9DZWRlbnRlUHJlc3RhdG9yZT4KICAgIDxDZXNza +W9uYXJpb0NvbW1pdHRlbnRlPgogICAgICA8RGF0aUFuYWdyYWZpY2k+CiAgICAg +ICAgPENvZGljZUZpc2NhbGU+MDM1MzM1OTAxNzQ8L0NvZGljZUZpc2NhbGU+CiA +gICAgICAgPEFuYWdyYWZpY2E+CiAgICAgICAgICA8RGVub21pbmF6aW9uZT5CRV +RBIEdBTU1BPC9EZW5vbWluYXppb25lPgogICAgICAgIDwvQW5hZ3JhZmljYT4KI +CAgICAgPC9EYXRpQW5hZ3JhZmljaT4KICAgICAgPFNlZGU+CiAgICAgICAgPElu +ZGlyaXp6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AgICAgIDwvRGF0aUdlbmVyYWxpRG9jdW1lbnRvPgogICAgICA8RGF0aU +9yZGluZUFjcXVpc3RvPgogICAgICAgIDxSaWZlcmltZW50b051bWVyb0xpbmVhP +jE8L1JpZmVyaW1lbnRvTnVtZXJvTGluZWE+CiAgICAgICAgPElkRG9jdW1lbnRv +PjY2Njg1PC9JZERvY3VtZW50bz4KICAgICAgICA8TnVtSXRlbT4xPC9OdW1JdGV +tPgogICAgICA8L0RhdGlPcmRpbmVBY3F1aXN0bz4KICAgICAgPERhdGlUcmFzcG +9ydG8+CiAgICAgICAgPERhdGlBbmFncmFmaWNpVmV0dG9yZT4JCQkJCiAgICAgI +CAgICA8SWRGaXNjYWxlSVZBPgogICAgICAgICAgICA8SWRQYWVzZT5JVDwvSWRQ +YWVzZT4KICAgICAgICAgICAgPElkQ29kaWNlPjA0NTA3OTkwMTUwPC9JZENvZGl +jZT4KICAgICAgICAgIDwvSWRGaXNjYWxlSVZBPgogICAgICAgICAgPEFuYWdyYW +ZpY2E+CiAgICAgICAgICAgIDxEZW5vbWluYXppb25lPlRyYXNwb3J0byBzcGE8L +0Rlbm9taW5hemlvbmU+CiAgICAgICAgICA8L0FuYWdyYWZpY2E+CiAgICAgICAg +PC9EYXRpQW5hZ3JhZmljaVZldHRvcmU+CiAgICAgICAgPERhdGFPcmFDb25zZWd +uYT4yMDEyLTEwLTIyVDE2OjQ2OjEyLjAwMCswMjowMDwvRGF0YU9yYUNvbnNlZ2 +5hPgogICAgICA8L0RhdGlUcmFzcG9ydG8+CiAgICA8L0RhdGlHZW5lcmFsaT4KI +CAgIDxEYXRpQmVuaVNlcnZpemk+CiAgICAgIDxEZXR0YWdsaW9MaW5lZT4KICAg +ICAgICA8TnVtZXJvTGluZWE+MTwvTnVtZXJvTGluZWE+CiAgICAgICAgPENvZGl +jZUFydGljb2xvPgogICAgICAgICAgPENvZGljZVRpcG8+SU5UPC9Db2RpY2VUaX +BvPgogICAgICAgICAgPENvZGljZVZhbG9yZT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5NDUyMTEwMDYxJTAjBgNVBAMMHEluZm9DZXJ0IEZpcm1 +hIFF1YWxpZmljYXRhIDICBACZaTgwDQYJKoZIhvcNAQELBQAEggEABrraEzS4n6 +SW2S9C5e0lEnqJehEEz4riodSsf79ZpNLsjZ88NMkQHR/Gy+q306NFA0KopfSKg +RmnbMXNKj1hSmLKaI7O6R+vfAwTs15/3VBaK86zCvzr1ig2zOSk2wlo2o64EiId +qDtOi9C7kTKIp4mC74QSLQvQf4dxA6mxzrw3jM9Su3nodwNq637rRcqverBPMK0 +ViEWIZyjzp/eClugD+ngGSmcEEImOE2aAXwPZTH8lhgPECTE10q2hc4567ZBdRj +EevLisiqLSY6NuE137XOeradGUB44iV/YCFO77HakttpcnZ8SkEausjuWIH3/y/ +BUi2EVDR4jtbdDTkA== +------=_Part_115220_-1210040643.1544268377979 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable + +Invio file IT01234567890_FPR04.xml.p7m, con identificativo 7339338, nel contest= +o della simulazione.In allegato il file contenente la fattura ed il file co= +ntenente i metadati. +La mail e' inviata dal Sistema di Interscambio per la fatturazione elettron= +ica (L. 244/2007). +Se il file allegato presenta estensione .xml.p7m vuol dire che e' stato fir= +mato digitalmente con firma Cades; per aprirlo e' necessario installare su= +l proprio computer un apposito software. +Tali software sono facilmente reperibili sul web sia a pagamento che gratui= +tamente (licenza open source). Il file xml ottenuto dopo aver 'decifrato' l= +a firma puo' essere agevolmente visualizzato +in formato PDF utilizzando la funzionalit=C3=83=C2=A0 'Visualizza PDF Fattu= +ra' dell'area 'Fatturazione elettronica' del sito Fatture e Corrispettivi. + + + +------=_Part_115220_-1210040643.1544268377979-- + +------------=_1544268378-17535-8512-- + +------F0ECFFC577E2EBDF94A331C8DE270B55 +Content-Type: application/x-pkcs7-signature; name="smime.p7s" +Content-Transfer-Encoding: base64 +Content-Disposition: attachment; filename="smime.p7s" + +MIIamAYJKoZIhvcNAQcCoIIaiTCCGoUCAQExCzAJBgUrD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ExAggZr5G96X/WjjAJBgUrDgMCGgUAoIHYMBgGCSqGSIb3DQEJAzEL +BgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTE4MTIwODExMjYxOFowIwYJKoZI +hvcNAQkEMRYEFA6rnfY/9Ot/kVbGN7jINQVbDKMxMHkGCSqGSIb3DQEJDzFsMGow +CwYJYIZIAWUDBAEqMAsGCWCGSAFlAwQBFjALBglghkgBZQMEAQIwCgYIKoZIhvcN +AwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqG +SIb3DQMCAgEoMA0GCSqGSIb3DQEBAQUABIIBAEt88KE+CL7zcT5ad0o+h+cTLCNF +qiWDbquFgL1Q8+U8PbQ42gxr1jt3Or+GGWwkuGycLKaqHNolhHA+vqckPevT7c59 +cT3Qrr2do/K9YYOdgLJ9QTs021D6uFaYt8lO5ZbUagNyyR+VkKIBB8OsT0KZDrpf +c724y45I/g8/MON3kcNluh4FR1Z2ALbiCGPkcuQohz5zxlRXV/ZnKAVlpvjzqAEz +SUAWbgCuK/fks8I6warTl3rrVxJRbrtqp7guw2gRhwO4Y+QlDmrxhYBhWcLa9uPi +pOq2U8OoV+tinIH40pjlpQXz+hEvXOiitzKN4FJSKqNGWo+J6vtQ2ss/RwU= + +------F0ECFFC577E2EBDF94A331C8DE270B55-- + diff --git a/l10n_it_fatturapa_pec/tests/test_e_invoice_response.py b/l10n_it_fatturapa_pec/tests/test_e_invoice_response.py index 55b1ea6b16de..f2dc9c3c1e80 100644 --- a/l10n_it_fatturapa_pec/tests/test_e_invoice_response.py +++ b/l10n_it_fatturapa_pec/tests/test_e_invoice_response.py @@ -108,6 +108,32 @@ def test_process_response_INVIO(self): self.assertEqual(e_invoices.xml_supplier_id.vat, 'IT02652600210') + def test_process_response_INVIO_base64(self): + """ + Receiving a 'Invio File' containing a base64 attachment + creates a new e-invoice + """ + incoming_mail = self._get_file( + 'POSTA CERTIFICATA: Invio File 7339338 (base64).txt') + + e_invoices = self.attach_in_model.search([]) + + msg_dict = self.env['mail.thread'] \ + .message_parse(message=incoming_mail) + + self.env['mail.thread'] \ + .with_context(fetchmail_server_id=self.PEC_server.id) \ + .message_process(False, incoming_mail) + + e_invoices = self.attach_in_model.search([]) - e_invoices + + self.assertTrue(e_invoices) + self.assertEqual( + Datetime.from_string(e_invoices.e_invoice_received_date), + Datetime.from_string(msg_dict['date'])) + self.assertEqual(e_invoices.xml_supplier_id.vat, + 'IT02780790107') + def test_process_response_INVIO_broken_XML(self): """Receiving a 'Invio File' with a broken XML sends an email to e_inv_notify_partner_ids""" diff --git a/l10n_it_sdi_channel/models/sdi.py b/l10n_it_sdi_channel/models/sdi.py index 12fb4cb23ca5..bd335cbda84b 100644 --- a/l10n_it_sdi_channel/models/sdi.py +++ b/l10n_it_sdi_channel/models/sdi.py @@ -154,9 +154,9 @@ def receive_fe( it can be added in `default_values`. :param file_name_content_dict: Dictionary mapping - file names to their base64-encoded content for each Electronic Bill. + file names to their content for each Electronic Bill. :param metadata_file_name_content_dict: Dictionary mapping - file names to their base64-encoded content for each Metadata file. + file names to their content for each Metadata file. :param default_values: Default values for the creation of Electronic Bill. :return: the created Electronic Bills (`fatturapa.attachment.in`).