ITA - Fattura elettronica - Supporto PEC
l10n_it_edi_pec · OCA/l10n-italy
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Description
Italiano
Questo modulo implementa il canale PEC (Posta Elettronica Certificata) per la comunicazione con il Sistema di Interscambio (SdI), in alternativa al proxy IAP standard di Odoo.
Si basa su l10n_it_edi_sdi per la logica condivisa di elaborazione
delle notifiche e ricezione delle fatture, aggiungendo il trasporto
specifico via PEC.
Funzionalità principali:
- Invio fatture elettroniche via PEC al SdI
- Ricezione email PEC dal SdI e instradamento ai gestori appropriati
- Gestione errori PEC con notifica automatica ai contatti configurati e disabilitazione del server dopo ripetuti fallimenti
- Configurazione server SMTP e IMAP/POP3 dedicati alla PEC
English
This module implements the PEC (Certified Email) transport channel for communication with the Italian Exchange System (SdI), as an alternative to Odoo's standard IAP proxy.
It builds on l10n_it_edi_sdi for the shared notification processing
and invoice reception logic, adding PEC-specific transport.
Main features:
- Send electronic invoices to SdI via PEC
- Receive PEC emails from SdI and route to appropriate handlers
- PEC error handling with automatic notification to configured contacts and server auto-disable after repeated failures
- Dedicated SMTP and IMAP/POP3 server configuration for PEC
Dependencies
- Odoo dependencies
- Python dependencies
- openupgradelib, cryptography
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
ir_mail_server_form |
ir.mail.server.form.inherit.l10n.it.edi.pec | ir.mail_server | form | Inherits base.ir_mail_server_form |
res_config_settings_view_form |
res.config.settings.view.form.inherit.l10n.it.edi.pec | res.config.settings | form | Inherits l10n_it_edi.res_config_settings_view_form |
view_email_server_form_e_invoice |
fetchmail.server.form.inherit.l10n.it.edi.pec | fetchmail.server | form | Inherits mail.view_email_server_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 6
No new fields.
Public methods (1)-
action_check_l10n_it_edi(self)Override to trigger PEC fetch instead of proxy poll.
-
e_inv_notify_partner_idsMany2many → res.partnerdefault=<expr>domain=[('email', '!=', False)]help="Contacts to notify when PEC message can't be processed"string='Contacts to notify' args: 'res.partner' -
is_l10n_it_edi_pecBooleanstring='E-invoice PEC server' -
last_pec_error_messageTextreadonly=Truestring='Last PEC Error Message' -
pec_error_countIntegerreadonly=Truestring='PEC error count'
-
fetch_mail(self, raise_exception=True)Override to add PEC-specific error tracking and auto-disable. PEC messages are legally relevant: if a message cannot be processed as an electronic invoice, it must NOT be marked as read (IMAP) or deleted (POP3) so it can be manually reviewed, and configured contacts are notified. After repeated failures the server is automatically disabled to prevent silent message loss.
-
is_l10n_it_edi_pecBooleanstring='E-invoice PEC server' -
l10n_it_edi_pec_email_fromCharhelp='Email address used as sender for e-invoices sent via PEC.'string='PEC Sender Email Address'
No public methods.
No new fields.
Public methods (1)-
message_route(self, message, message_dict, model=None, thread_id=None, custom_values=None)@api.model
-
l10n_it_edi_pec_email_exchange_systemCharhelp='PEC address used to communicate with the Exchange System (SDI).'string='SDI PEC Email Address' -
l10n_it_edi_pec_fetch_server_idMany2one → fetchmail.serverdomain=[('is_l10n_it_edi_pec', '=', True)]string='Incoming PEC server' args: 'fetchmail.server' -
l10n_it_edi_pec_server_idMany2one → ir.mail_serverdomain=[('is_l10n_it_edi_pec', '=', True)]string='Outgoing PEC server' args: 'ir.mail_server' -
l10n_it_edi_use_pecBooleanhelp='If enabled, electronic invoices will be sent and received through PEC (Certified Email) instead of the standard IAP proxy.'string='Use PEC for e-invoicing'
No public methods.
-
l10n_it_edi_pec_email_exchange_systemCharreadonly=Falserelated='company_id.l10n_it_edi_pec_email_exchange_system' -
l10n_it_edi_pec_fetch_server_idMany2onereadonly=Falserelated='company_id.l10n_it_edi_pec_fetch_server_id' -
l10n_it_edi_pec_server_idMany2onereadonly=Falserelated='company_id.l10n_it_edi_pec_server_id' -
l10n_it_edi_use_pecBooleanreadonly=Falserelated='company_id.l10n_it_edi_use_pec'
No public methods.