Pec Messages
l10n_it_pec_messages · OCA/l10n-italy
-
Security25/25No findings
-
Activity0/25Last human commit 124 months ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
- Migrating to 19.0: only `__manifest__.py` is recognized: a module with `__openerp__.py` is not detected at all. migration-openerp-manifest · source
FetchmailServer— Class 'FetchmailServer' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceFetchmailServer— Class 'FetchmailServer' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceMailMail— Class 'MailMail' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceMailMessage— Class 'MailMessage' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceMailMessage— Class 'MailMessage' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourceMailNotification— Class 'MailNotification' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceMailThread— Class 'MailThread' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceResPartner— Class 'ResPartner' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceResPartner— Migrating to 17.0: `name_get` no longer feeds `display_name`: override `_compute_display_name` instead. migration-name-get · sourceemail_compose_message_wizard_form_pec— 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 · sourceir_mail_server— Class 'ir_mail_server' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceir_mail_server— Class 'ir_mail_server' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · sourceir_mail_server— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceir_mail_server_form_pec— 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 · sourcemail_compose_message— Class 'mail_compose_message' still inherits from the old-style `osv.TransientModel` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourcemail_compose_message— Class 'mail_compose_message' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. (2 occurrences in this file) migration-old-style-fields · sourcemessage_pec_partner_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (2 occurrences in this file) migration-view-tree-tag · sourceres_users— Class 'res_users' still inherits from the old-style `orm.Model` API: rewrite it against `models.Model`/`models.TransientModel`/`models.AbstractModel` - the old `osv`/`orm` API was removed entirely in modern Odoo. migration-old-api-base · sourceres_users— Class 'res_users' declares `_columns` as a plain dict: old-style field/default declarations, replace with `fields.X(...)` class attributes and `default=`. migration-old-style-fields · source- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp`) (5 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) (2 occurrences in this file) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · source
- Migrating to 10.0: the `openerp` namespace was renamed to `odoo`; only a deprecated `openerp.addons` alias remained. (`openerp.osv`) migration-openerp-import · 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
Pec Messages Management
This module allows to correctly parse PEC messages. According to 'daticert.xml' file, it identifies the message type and other message data. 'consegna', 'accettazione' and the other notification messages are linked to the original message that originated them. It also correctly parses the mail attachments and attaches the original 'eml' PEC message. The module adds a 'PEC' menu where to handle PEC messages.
Configuration
Create a new user associated to the PEC mailbox. Set 'Never' for 'Receive Messages by Email'. Configure the fetchmail server (incoming mail server, IMAP or POP) used to fetch PEC messages and set it as 'PEC'. Set the users allowed to use that server. Configure the 'outgoing mail server' (SMTP) used for PEC and set it as 'PEC'. Link the outgoing mail server to the 'incoming PEC server'. Add your user to 'PEC reader' group.
Contributors
- Alessio Gerace alessio.gerace@gmail.com
- Lorenzo Battistini lorenzo.battistini@agilebg.com
- Roberto Onnis roberto.onnis@innoviu.com
Dependencies
- Odoo dependencies
- Python dependencies
- None
- 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 9
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
email_compose_message_wizard_form_pec |
mail.compose.message.form.pec | mail.compose.message | form | New |
ir_mail_server_form_pec |
ir.mail_server.form.pec | ir.mail_server | form | Inherits base.ir_mail_server_form |
message_pec_form |
message.pec.form | mail.message | form | New |
message_pec_partner_tree |
res.partner.pec.tree | res.partner | tree | New |
message_pec_tree |
message.pec.tree | mail.message | tree | New |
pec_message_search_view |
message.search.form | mail.message | search | New |
view_document_file_protocol_form_pec |
fetchmail.server.form.pec | fetchmail.server | form | Inherits fetchmail.view_email_server_form |
view_message_form_pec |
mail.message.form.pec | mail.message | form | Inherits mail.view_message_form |
view_user_form_pec |
res.users.form.pec | res.users | form | Inherits base.view_users_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 9
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (2)-
get_message_data(self, cr, uid, message_id, context=None) -
send_mail(self, cr, uid, ids, context=None)Override of send_mail to duplicate attachments linked to the email.template. Indeed, basic mail.compose.message wizard duplicates attachments in mass mailing mode. But in 'single post' mode, attachments of an email template also have to be duplicated to avoid changing their ownership.
No new fields.
Public methods (3)-
create(self, cr, uid, values, context=None)when replying to a PEC message, or sending a new PEC message, use the linked SMTP server and SMTP user -
send(self, cr, uid, ids, auto_commit=False, recipient_ids=None, context=None) -
send_get_email_dict(self, cr, uid, mail, partner=None, context=None)
No new fields.
Public methods (2)-
CheckNotificationStatus(self, cr, uid, ids, context=None) -
check_access_rule(self, cr, uid, ids, operation, context=None)
No new fields.
Public methods (1)-
get_partners_to_notify(self, cr, uid, message, partners_to_notify=None, context=None)this allows to send PEC mail to partners without standard email
No new fields.
Public methods (4)-
force_create_partner(self, cr, uid, context=None) -
is_server_pec(self, cr, uid, context=None) -
message_parse(self, cr, uid, message, save_original=False, context=None) -
parse_daticert(self, cr, uid, daticert, context=None)
No new fields.
Public methods (2)-
message_post(self, cr, uid, thread_id, body='', subject=None, type='notification', subtype=None, parent_id=False, attachments=None, context=None, content_subtype='html', **kwargs)if pec_type is accettazione and non-accettazione link message as reception type in parent message if pec_type is avvenuta-consegna errore-consegna rilevazione-virus link message as delivery type in parent message if pec_type is error type like: non-accettazione errore-consegna rilevazione-virus marks parent message with error flag -
name_get(self, cr, uid, ids, context=None)
No new fields.
Public methods (0)No public methods.