Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.0] porting l10n_it_pec_messages #515

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
118 changes: 118 additions & 0 deletions l10n_it_pec_messages/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
============
Pec Messages
============

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-italy/tree/10.0/l10n_it_pec_messages
:alt: OCA/l10n-italy
.. |badge4| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/122/10.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4|

This module extends the Odoo base email functionality to support the
PEC standard (posta elettronica certificata) and correctly
parse PEC messages (See images in docs for the message structure).

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 menu

Contacts -> PEC

menu where to write PEC messages.

Sent and received messages are accesible by

Technical -> Email -> Messages

menu, where you can filter by PEC type

https://it.wikipedia.org/wiki/Posta_elettronica_certificata

**l10n_it_pec Incompatibility**

l10n_it_pec introduce a new field for PEC address, following a different paradigm.

Using l10n_it_pec_messages, l10n_it_pec is not needed and PEC addresses must be added as contacts of the main partner

**Table of contents**

.. contents::
:local:

Configuration
=============

Add your user to 'PEC reader' group

Configure the fetchmail server (incoming mail server, IMAP)
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'.

Your customers/suppliers PEC addresses must be created as new contacts of the main partner.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-italy/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Agile Business Group

Contributors
~~~~~~~~~~~~

* Alessio Gerace <alessio.gerace@gmail.com>
* Lorenzo Battistini <lorenzo.battistini@agilebg.com>
* Roberto Onnis <roberto.onnis@innoviu.com>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/l10n-italy <https://github.com/OCA/l10n-italy/tree/10.0/l10n_it_pec_messages>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
5 changes: 5 additions & 0 deletions l10n_it_pec_messages/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

from . import model
from . import wizard
29 changes: 29 additions & 0 deletions l10n_it_pec_messages/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
# Copyright 2014-2018 Agile Business Group http://www.agilebg.com
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

{
"name": "Pec Messages",
"summary": "Send and receive PEC messages",
"version": "10.0.1.0.0",
"author": "Agile Business Group, Odoo Community Association (OCA)",
"category": "Certified Mailing",
"website": "https://github.com/OCA/l10n-italy",
"license": "LGPL-3",
'depends': [
'fetchmail', 'mail', 'contacts', 'document'
],
'data': [
"security/mail_data.xml",
"view/fetchmail_view.xml",
"view/ir_mail_server.xml",
"wizard/mail_compose_message_view.xml",
"view/mail_view.xml",
"view/res_users.xml",
"security/ir.model.access.csv",
],
'demo': [
'demo/pec_data.xml',
],
'installable': True
}
30 changes: 30 additions & 0 deletions l10n_it_pec_messages/demo/pec_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" ?>
<odoo>
<data>
<record model="res.users" id="base.user_root">
<field name="groups_id" eval="[(4, ref('l10n_it_pec_messages.group_pec'))]"/>
</record>
<record model="fetchmail.server" id="imap_pec_server">
<field name="name">IMAP PEC server</field>
<field name="type">imap</field>
<field name="user">l.battistini@pec.it</field>
<field name="pec" eval="True"></field>
<field name="user_ids" eval="[(6, 0,[ref('base.user_root')])]"></field>
</record>
<record model="ir.mail_server" id="smtp_pec_server">
<field name="name">SMTP PEC server</field>
<field name="smtp_host">pechost</field>
<field name="pec" eval="True"></field>
<field name="in_server_id" ref="imap_pec_server"></field>
<field name="smtp_user">l.battistini@pec.it</field>
</record>
<record model="res.partner" id="pec_partner_1">
<field name="email">thinkstudio@pec.it</field>
<field name="name">PEC contact 1</field>
</record>
<record model="res.partner" id="pec_partner_2">
<field name="email">l.battistini@pec.it</field>
<field name="name">PEC contact 2</field>
</record>
</data>
</odoo>
Binary file added l10n_it_pec_messages/docs/Accettazione.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added l10n_it_pec_messages/docs/Consegna.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added l10n_it_pec_messages/docs/PostaCertificata.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.