@@ -21,13 +21,13 @@ ITA - Fattura elettronica - Supporto PEC
2121 :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
2222 :alt: License: AGPL-3
2323.. |badge3 | image :: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
24- :target: https://github.com/OCA/l10n-italy/tree/18 .0/l10n_it_edi_pec
24+ :target: https://github.com/OCA/l10n-italy/tree/19 .0/l10n_it_edi_pec
2525 :alt: OCA/l10n-italy
2626.. |badge4 | image :: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27- :target: https://translation.odoo-community.org/projects/l10n-italy-18 -0/l10n-italy-18 -0-l10n_it_edi_pec
27+ :target: https://translation.odoo-community.org/projects/l10n-italy-19 -0/l10n-italy-19 -0-l10n_it_edi_pec
2828 :alt: Translate me on Weblate
2929.. |badge5 | image :: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30- :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=18 .0
30+ :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-italy&target_branch=19 .0
3131 :alt: Try me on Runboat
3232
3333|badge1 | |badge2 | |badge3 | |badge4 | |badge5 |
@@ -44,11 +44,11 @@ specifico via PEC.
4444
4545Funzionalità principali:
4646
47- - Invio fatture elettroniche via PEC al SdI
48- - Ricezione email PEC dal SdI e instradamento ai gestori appropriati
49- - Gestione errori PEC con notifica automatica ai contatti configurati e
50- disabilitazione del server dopo ripetuti fallimenti
51- - Configurazione server SMTP e IMAP/POP3 dedicati alla PEC
47+ - Invio fatture elettroniche via PEC al SdI
48+ - Ricezione email PEC dal SdI e instradamento ai gestori appropriati
49+ - Gestione errori PEC con notifica automatica ai contatti configurati e
50+ disabilitazione del server dopo ripetuti fallimenti
51+ - Configurazione server SMTP e IMAP/POP3 dedicati alla PEC
5252
5353**English **
5454
@@ -61,11 +61,11 @@ and invoice reception logic, adding PEC-specific transport.
6161
6262Main features:
6363
64- - Send electronic invoices to SdI via PEC
65- - Receive PEC emails from SdI and route to appropriate handlers
66- - PEC error handling with automatic notification to configured contacts
67- and server auto-disable after repeated failures
68- - Dedicated SMTP and IMAP/POP3 server configuration for PEC
64+ - Send electronic invoices to SdI via PEC
65+ - Receive PEC emails from SdI and route to appropriate handlers
66+ - PEC error handling with automatic notification to configured contacts
67+ and server auto-disable after repeated failures
68+ - Dedicated SMTP and IMAP/POP3 server configuration for PEC
6969
7070**Table of contents **
7171
@@ -79,24 +79,25 @@ Configuration
7979
80801. Configurare un server SMTP in uscita per la PEC:
8181
82- - Andare in *Impostazioni → Tecnico → Server di posta in uscita *
83- - Creare un nuovo server con i parametri del provider PEC
84- - Spuntare "E-invoice PEC server"
85- - Inserire l'indirizzo email PEC mittente
82+ - Andare in *Impostazioni → Tecnico → Server di posta in uscita *
83+ - Creare un nuovo server con i parametri del provider PEC
84+ - Spuntare "E-invoice PEC server"
85+ - Inserire l'indirizzo email PEC mittente
8686
87872. Configurare un server di posta in ingresso per la PEC:
8888
89- - Andare in *Impostazioni → Tecnico → Server di posta in ingresso *
90- - Creare un nuovo server IMAP o POP3 con i parametri del provider PEC
91- - Spuntare "E-invoice PEC server"
92- - Configurare i contatti da notificare in caso di errore
89+ - Andare in *Impostazioni → Tecnico → Server di posta in ingresso *
90+ - Creare un nuovo server IMAP o POP3 con i parametri del provider
91+ PEC
92+ - Spuntare "E-invoice PEC server"
93+ - Configurare i contatti da notificare in caso di errore
9394
94953. Abilitare il canale PEC per l'azienda:
9596
96- - Andare in *Impostazioni → Contabilità → Fatturazione elettronica *
97- - Spuntare "Use PEC for e-invoicing"
98- - Selezionare i server PEC in uscita e in ingresso
99- - Inserire l'indirizzo PEC del SdI
97+ - Andare in *Impostazioni → Contabilità → Fatturazione elettronica *
98+ - Spuntare "Use PEC for e-invoicing"
99+ - Selezionare i server PEC in uscita e in ingresso
100+ - Inserire l'indirizzo PEC del SdI
100101
1011024. Il parametro di sistema ``fetchmail.pec.max.retry `` (default: 5)
102103 controlla il numero massimo di errori consecutivi prima che il server
@@ -108,24 +109,24 @@ Configuration
108109
1091101. Configure an outgoing PEC SMTP server:
110111
111- - Go to *Settings → Technical → Outgoing Mail Servers *
112- - Create a new server with your PEC provider parameters
113- - Check "E-invoice PEC server"
114- - Enter the PEC sender email address
112+ - Go to *Settings → Technical → Outgoing Mail Servers *
113+ - Create a new server with your PEC provider parameters
114+ - Check "E-invoice PEC server"
115+ - Enter the PEC sender email address
115116
1161172. Configure an incoming PEC mail server:
117118
118- - Go to *Settings → Technical → Incoming Mail Servers *
119- - Create a new IMAP or POP3 server with your PEC provider parameters
120- - Check "E-invoice PEC server"
121- - Configure contacts to notify on errors
119+ - Go to *Settings → Technical → Incoming Mail Servers *
120+ - Create a new IMAP or POP3 server with your PEC provider parameters
121+ - Check "E-invoice PEC server"
122+ - Configure contacts to notify on errors
122123
1231243. Enable PEC channel for the company:
124125
125- - Go to *Settings → Accounting → Italian Electronic Invoicing *
126- - Check "Use PEC for e-invoicing"
127- - Select the outgoing and incoming PEC servers
128- - Enter the SdI PEC email address
126+ - Go to *Settings → Accounting → Italian Electronic Invoicing *
127+ - Check "Use PEC for e-invoicing"
128+ - Select the outgoing and incoming PEC servers
129+ - Enter the SdI PEC email address
129130
1301314. The system parameter ``fetchmail.pec.max.retry `` (default: 5)
131132 controls the maximum number of consecutive errors before the incoming
@@ -151,11 +152,11 @@ Le notifiche dal SdI vengono ricevute automaticamente tramite il cron di
151152fetchmail. Lo stato della fattura viene aggiornato automaticamente in
152153base alla notifica ricevuta:
153154
154- - RC (Ricevuta di Consegna) → Inoltrata al destinatario
155- - NS (Notifica di Scarto) → Rifiutata
156- - MC (Mancata Consegna) → Inoltro al destinatario fallito
157- - NE (Notifica Esito) → Accettata/Rifiutata dal partner PA
158- - DT (Decorrenza Termini) → Accettata per decorrenza termini
155+ - RC (Ricevuta di Consegna) → Inoltrata al destinatario
156+ - NS (Notifica di Scarto) → Rifiutata
157+ - MC (Mancata Consegna) → Inoltro al destinatario fallito
158+ - NE (Notifica Esito) → Accettata/Rifiutata dal partner PA
159+ - DT (Decorrenza Termini) → Accettata per decorrenza termini
159160
160161Ricezione fatture passive
161162-------------------------
@@ -185,11 +186,11 @@ SdI notifications are received automatically via the fetchmail cron. The
185186invoice state is updated automatically based on the notification
186187received:
187188
188- - RC (Delivery Receipt) → Forwarded to recipient
189- - NS (Rejection) → Rejected
190- - MC (Failed Delivery) → Forward to recipient failed
191- - NE (Outcome Notification) → Accepted/Rejected by PA partner
192- - DT (Deadline Expiry) → Accepted after term expiry
189+ - RC (Delivery Receipt) → Forwarded to recipient
190+ - NS (Rejection) → Rejected
191+ - MC (Failed Delivery) → Forward to recipient failed
192+ - NE (Outcome Notification) → Accepted/Rejected by PA partner
193+ - DT (Deadline Expiry) → Accepted after term expiry
193194
194195Receiving vendor bills
195196----------------------
@@ -220,9 +221,9 @@ The module was renamed from ``l10n_it_fatturapa_pec`` to
220221
221222Dependencies were drastically simplified:
222223
223- - **v16 **: ``l10n_it_fatturapa_out ``, ``l10n_it_fatturapa_in ``,
224- ``l10n_it_sdi_channel ``, ``mail ``
225- - **v18 **: ``l10n_it_edi ``, ``mail ``
224+ - **v16 **: ``l10n_it_fatturapa_out ``, ``l10n_it_fatturapa_in ``,
225+ ``l10n_it_sdi_channel ``, ``mail ``
226+ - **v18 **: ``l10n_it_edi ``, ``mail ``
226227
227228The modules ``l10n_it_fatturapa_out ``, ``l10n_it_fatturapa_in `` and
228229``l10n_it_sdi_channel `` are no longer needed.
@@ -233,26 +234,26 @@ Integration with l10n_it_edi core
233234The module now extends Odoo 18's ``l10n_it_edi `` core methods instead of
234235implementing a standalone flow:
235236
236- - ``_l10n_it_edi_upload() `` on ``account.move ``: intercepts sending for
237- PEC-enabled companies and sends directly via SMTP, with fallback to
238- ``super() `` for the proxy channel
239- - ``_l10n_it_edi_update_send_state() ``: excludes PEC invoices from proxy
240- polling
241- - ``_l10n_it_edi_export_check() ``: validates PEC configuration and
242- removes the proxy user requirement
243- - ``action_check_l10n_it_edi() ``: triggers PEC fetchmail for manual
244- status check
237+ - ``_l10n_it_edi_upload() `` on ``account.move ``: intercepts sending for
238+ PEC-enabled companies and sends directly via SMTP, with fallback to
239+ ``super() `` for the proxy channel
240+ - ``_l10n_it_edi_update_send_state() ``: excludes PEC invoices from
241+ proxy polling
242+ - ``_l10n_it_edi_export_check() ``: validates PEC configuration and
243+ removes the proxy user requirement
244+ - ``action_check_l10n_it_edi() ``: triggers PEC fetchmail for manual
245+ status check
245246
246247Removed sdi.channel model
247248~~~~~~~~~~~~~~~~~~~~~~~~~
248249
249250The ``sdi.channel `` model has been completely removed. PEC configuration
250251is now managed directly on ``res.company `` through the fields:
251252
252- - ``l10n_it_edi_use_pec `` (Boolean)
253- - ``l10n_it_edi_pec_server_id `` (Many2one -> ir.mail_server)
254- - ``l10n_it_edi_pec_fetch_server_id `` (Many2one -> fetchmail.server)
255- - ``l10n_it_edi_pec_email_exchange_system `` (Char)
253+ - ``l10n_it_edi_use_pec `` (Boolean)
254+ - ``l10n_it_edi_pec_server_id `` (Many2one -> ir.mail_server)
255+ - ``l10n_it_edi_pec_fetch_server_id `` (Many2one -> fetchmail.server)
256+ - ``l10n_it_edi_pec_email_exchange_system `` (Char)
256257
257258These fields are exposed in Settings via ``res.config.settings ``. The
258259views ``sdi_view.xml `` and ``company_view.xml `` are replaced by
@@ -284,25 +285,26 @@ SdI state mapping
284285
285286State mapping has changed to align with the ``l10n_it_edi `` core:
286287
287- +----------------------+----------------------------+----------------------+
288- | SdI Code | v16 | v18 (account.move) |
289- | | (fatturapa.attachment.out) | |
290- +======================+============================+======================+
291- | NS (Notifica di | ``sender_error `` | ``rejected `` |
292- | Scarto) | | |
293- +----------------------+----------------------------+----------------------+
294- | RC (Ricevuta di | ``validated `` | ``forwarded `` |
295- | Consegna) | | |
296- +----------------------+----------------------------+----------------------+
297- | MC (Mancata | ``recipient_error `` | ``forward_failed `` |
298- | Consegna) | | |
299- +----------------------+----------------------------+----------------------+
300- | NE (Notifica Esito) | ``accepted `` / | ``accepted `` / |
301- | | ``rejected `` | ``rejected `` |
302- +----------------------+----------------------------+----------------------+
303- | DT (Decorrenza | ``validated `` | ``accepted `` |
304- | Termini) | | |
305- +----------------------+----------------------------+----------------------+
288+ +----------------------+----------------------+----------------------+
289+ | SdI Code | v16 | v18 (account.move) |
290+ | | (fattu | |
291+ | | rapa.attachment.out) | |
292+ +======================+======================+======================+
293+ | NS (Notifica di | ``sender_error `` | ``rejected `` |
294+ | Scarto) | | |
295+ +----------------------+----------------------+----------------------+
296+ | RC (Ricevuta di | ``validated `` | ``forwarded `` |
297+ | Consegna) | | |
298+ +----------------------+----------------------+----------------------+
299+ | MC (Mancata | ``recipient_error `` | ``forward_failed `` |
300+ | Consegna) | | |
301+ +----------------------+----------------------+----------------------+
302+ | NE (Notifica Esito) | ``accepted `` / | ``accepted `` / |
303+ | | ``rejected `` | ``rejected `` |
304+ +----------------------+----------------------+----------------------+
305+ | DT (Decorrenza | ``validated `` | ``accepted `` |
306+ | Termini) | | |
307+ +----------------------+----------------------+----------------------+
306308
307309Removed first_invoice_sent flow
308310~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -316,11 +318,11 @@ PEC address must now be configured directly in the
316318Simplified sending mechanism
317319~~~~~~~~~~~~~~~~~~~~~~~~~~~~
318320
319- - **v16 **: ``sdi.channel.send_via_pec() `` created ``mail.message `` and
320- ``mail.mail `` records, then delegated sending to Odoo's mail system
321- - **v18 **: ``_l10n_it_edi_upload() `` directly builds a Python
322- ``EmailMessage `` and sends it via ``ir.mail_server.send_email() ``,
323- without creating intermediate database records
321+ - **v16 **: ``sdi.channel.send_via_pec() `` created ``mail.message `` and
322+ ``mail.mail `` records, then delegated sending to Odoo's mail system
323+ - **v18 **: ``_l10n_it_edi_upload() `` directly builds a Python
324+ ``EmailMessage `` and sends it via ``ir.mail_server.send_email() ``,
325+ without creating intermediate database records
324326
325327Field renames
326328~~~~~~~~~~~~~
@@ -346,7 +348,7 @@ Bug Tracker
346348Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues >`_.
347349In case of trouble, please check there if your issue has already been reported.
348350If you spotted it first, help us to smash it by providing a detailed and welcomed
349- `feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_edi_pec%0Aversion:%2018 .0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
351+ `feedback <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_edi_pec%0Aversion:%2019 .0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior** >`_.
350352
351353Do not contact contributors directly about support or help with technical issues.
352354
@@ -356,12 +358,12 @@ Credits
356358Contributors
357359------------
358360
359- - Andrea Colangelo (andreacolangelo@openforce.it)
360- - Sergio Corato https://efatto.it
361- - Lorenzo Battistini https://github.com/eLBati
362- - Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo)
363- - Roberto Fichera https://levelprime.com
364- - Simone Rubino
361+ - Andrea Colangelo (andreacolangelo@openforce.it)
362+ - Sergio Corato https://efatto.it
363+ - Lorenzo Battistini https://github.com/eLBati
364+ - Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo)
365+ - Roberto Fichera https://levelprime.com
366+ - Simone Rubino
365367
366368Maintainers
367369-----------
@@ -376,6 +378,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
376378mission is to support the collaborative development of Odoo features and
377379promote its widespread use.
378380
379- This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/18 .0/l10n_it_edi_pec >`_ project on GitHub.
381+ This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/19 .0/l10n_it_edi_pec >`_ project on GitHub.
380382
381383You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
0 commit comments