Skip to content
Health
60/100
fair
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 1 month ago
  • Required by5/25
    0 modules depend on it
  • Maturity5/25
    In 1 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.38 MB
Module directory on disk
Code analysis 0 migration notes 6 models 3 views 0 HTTP endpoints

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
OCA/account-financial-reporting:
OCA/account-financial-tools:
OCA/l10n-italy:
OCA/server-ux:
odoo/odoo:
- web
- bus
- uom
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 IDNameModelTypeStatus
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

New fields (0)

No new fields.

Public methods (1)
  • action_check_l10n_it_edi(self)
    Override to trigger PEC fetch instead of proxy poll.

New fields (4)
  • e_inv_notify_partner_ids Many2many → res.partner
    default=<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_pec Boolean
    string='E-invoice PEC server'
  • last_pec_error_message Text
    readonly=True string='Last PEC Error Message'
  • pec_error_count Integer
    readonly=True string='PEC error count'
Public methods (1)
  • 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.

New fields (2)
  • is_l10n_it_edi_pec Boolean
    string='E-invoice PEC server'
  • l10n_it_edi_pec_email_from Char
    help='Email address used as sender for e-invoices sent via PEC.' string='PEC Sender Email Address'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • message_route(self, message, message_dict, model=None, thread_id=None, custom_values=None)
    @api.model

New fields (4)
  • l10n_it_edi_pec_email_exchange_system Char
    help='PEC address used to communicate with the Exchange System (SDI).' string='SDI PEC Email Address'
  • l10n_it_edi_pec_fetch_server_id Many2one → fetchmail.server
    domain=[('is_l10n_it_edi_pec', '=', True)] string='Incoming PEC server' args: 'fetchmail.server'
  • l10n_it_edi_pec_server_id Many2one → ir.mail_server
    domain=[('is_l10n_it_edi_pec', '=', True)] string='Outgoing PEC server' args: 'ir.mail_server'
  • l10n_it_edi_use_pec Boolean
    help='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'
Public methods (0)

No public methods.

New fields (4)
  • l10n_it_edi_pec_email_exchange_system Char
    readonly=False related='company_id.l10n_it_edi_pec_email_exchange_system'
  • l10n_it_edi_pec_fetch_server_id Many2one
    readonly=False related='company_id.l10n_it_edi_pec_fetch_server_id'
  • l10n_it_edi_pec_server_id Many2one
    readonly=False related='company_id.l10n_it_edi_pec_server_id'
  • l10n_it_edi_use_pec Boolean
    readonly=False related='company_id.l10n_it_edi_use_pec'
Public methods (0)

No public methods.