ITA - Fattura elettronica - Supporto PEC
l10n_it_fatturapa_pec · OCA/l10n-italy
-
Security25/25No findings
-
Activity12/25Last human commit 14 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 6 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
ir_mail_server_fatturapa_out_pec_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_email_server_form_e_invoice— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_sdi_channel_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Italiano
Questo modulo consente di inviare e ricevere i file XML della fattura elettronica versione 1.2
http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm
via PEC.
Analizza le notifiche provenienti dallo SdI e monitora lo stato della trasmissione.
English
This module allows you to send and receive electronic invoice/bill XML files version 1.2
http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm
via PEC.
Notifications from ES are parsed and transmission state is tracked.
Dependencies
- Odoo dependencies
- Python dependencies
- mock, elementpath, unidecode, xmlschema, asn1crypto, codicefiscale
- 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 5
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
ir_mail_server_fatturapa_out_pec_form |
ir.mail.server.fatturapa.out.pec.form | ir.mail_server | form | Inherits base.ir_mail_server_form |
view_account_config_settings_ftpa_pec |
view_account_config_settings_ftpa_pec | res.config.settings | Inherits l10n_it_fatturapa.view_account_config_settings | |
view_email_server_form_e_invoice |
view_email_server_form_e_invoice | fetchmail.server | form | Inherits mail.view_email_server_form |
view_sdi_channel_form |
sdi.channel.inherit.view.form | sdi.channel | form | Inherits l10n_it_sdi_channel.view_sdi_channel_form |
view_sdi_channel_tree |
sdi.channel.inherit.view.tree | sdi.channel | tree | Inherits l10n_it_sdi_channel.view_sdi_channel_tree |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 7
No new fields.
Public methods (1)-
parse_pec_response(self, message_dict)
-
e_inv_notify_partner_idsMany2many → res.partnerdefault=_default_e_inv_notify_partner_idsdomain=[('email', '!=', False)]help="Contacts to notify when PEC message can't be processed"string='Contacts to notify' args: 'res.partner' -
is_fatturapa_pecBooleanargs: 'E-invoice PEC server' -
last_pec_error_messageTextreadonly=True args: 'Last PEC Error Message' -
pec_error_countIntegerreadonly=True args: 'PEC error count'
-
fetch_mail(self) -
fetch_mail_server_type_imap(self, server, MailThread, error_messages, **additional_context) -
fetch_mail_server_type_pop(self, server, MailThread, error_messages, **additional_context) -
manage_pec_failure(self, exception, error_messages) -
notify_about_server_reset(self) -
notify_or_log(self, message)Send an email to partners in self.e_inv_notify_partner_ids containing message. :param: message :type message: list of str, or str
-
email_from_for_fatturaPACharargs: 'Sender Email Address' -
is_fatturapa_pecBooleanargs: 'E-invoice PEC server'
No public methods.
No new fields.
Public methods (7)-
clean_message_dict(self, message_dict) -
create_fatturapa_attachment_in(self, attachment, message_dict=None) -
find_attachment_by_subject(self, subject) -
manage_pec_fe_attachments(self, message, message_dict, response_attachments) -
manage_pec_sdi_notification(self, message, message_dict) -
manage_pec_sdi_response(self, att, message_dict) -
message_route(self, message, message_dict, model=None, thread_id=None, custom_values=None)@api.model
-
email_exchange_systemCharreadonly=Truerelated='sdi_channel_id.email_exchange_system'string='Exchange System Email Address' -
email_from_for_fatturaPACharreadonly=Truerelated='sdi_channel_id.pec_server_id.email_from_for_fatturaPA'string='Sender Email Address'
No public methods.
-
email_exchange_systemCharreadonly=Truerelated='company_id.sdi_channel_id.email_exchange_system'string='Exchange System Email Address' -
email_from_for_fatturaPACharreadonly=Truerelated='company_id.sdi_channel_id.pec_server_id.email_from_for_fatturaPA'string='Sender Email Address'
No public methods.
-
channel_typeSelectionondelete={'pec': 'cascade'}selection_add=[('pec', 'PEC')] -
email_exchange_systemCharhelp='The first time you send a PEC to SDI, you must use the address sdi01@pec.fatturapa.it.\nOdoo will automatically set this address the first time you send an e-invoice to SdI using this channel.\nThe system, with the first response or notification, communicates the PEC address to be used for future messages' args: 'Exchange System Email Address' -
fetch_pec_server_idMany2one → fetchmail.serverdomain=[('is_fatturapa_pec', '=', True)]required=Falsestring='Incoming PEC server' args: 'fetchmail.server' -
first_invoice_sentBooleanhelp='This is set after having sent the first e-invoice to SDI' args: 'SDI already assigned a PEC address to my company' -
pec_server_idMany2one → ir.mail_serverdomain=[('is_fatturapa_pec', '=', True)]required=Falsestring='Outgoing PEC server' args: 'ir.mail_server'
-
check_email_validity(self)@api.constrains('email_exchange_system') -
check_fetch_pec_server_id(self)@api.constrains('fetch_pec_server_id') -
check_first_pec_sending(self) -
check_pec_server_id(self)@api.constrains('pec_server_id') -
send_via_pec(self, attachment_out_ids) -
update_after_first_pec_sending(self)
Loading…
Loading…
Loading…
Loading…
Loading…