Skip to content

Commit

Permalink
[14.0][IMP] l10n_it_fatturapa_pec: decoupling from l10n_it_sdi_channel.
Browse files Browse the repository at this point in the history
  • Loading branch information
GSLabIt authored and Borruso committed Mar 10, 2023
1 parent 58718cb commit 707bc6e
Show file tree
Hide file tree
Showing 20 changed files with 631 additions and 8 deletions.
35 changes: 34 additions & 1 deletion l10n_it_fatturapa_pec/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,21 @@ Configuration

Consultare il modulo `l10n_it_sdi_channel`.

Creare un nuovo canale di tipo PEC (unico supportato per ora) e indicare:

- Il server PEC da utilizzare per inviare/ricevere attraverso lo SdI
- La email PEC dello SdI, inizialmente uguale a [email protected]

Dopo il primo invio, lo SdI risponderà segnalando l'indirizzo da utilizzare per gli invii successivi, da inserire nella configurazione del server PEC dedicato.

Nella configurazione del server smtp, sezione "PEC e fattura elettronica", selezionare la casella "Server PEC e-fattura".

Indicare quindi la email da usare per l'invio e la ricezione, solitamente è uguale al nome utente di connessione (può essere diversa in casi particolari).

È preferibile avere una email dedicata solo alla fatturazione elettronica, in quanto i messaggi di altro tipo non possono essere gestiti da Odoo (verrebbero marcati comunque come letti).

Se si usano altri server SMTP per l'invio di email non PEC, è necessario aumentare la loro priorità rispetto a quella del server PEC.

Lo stato dell'esportazione XML può essere forzato impostando 'Permettere di forzare lo stato dell'esportazione e-fattura' nelle impostazioni tecniche dell'utente.

Per ogni azienda, in
Expand All @@ -69,6 +84,21 @@ specificare l'utente che sarà utilizzato come creatore delle e-fatture fornitor

See `l10n_it_sdi_channel` module.

Create a new PEC channel type (the only one supported right now) and indicate:

- PEC server to be used for sending to/receiving from ES
- ES PEC email, initially equal to [email protected]

After sending the first email, ES will reply indicating the address to use for all the others, to be entered in dedicated PEC server configuration.

In smtp server configuration, select 'E-invoice PEC server' in 'PEC and Electronic Invoice' section.

Then specify the email to use for sending and receiving, it is usually equal to connection username (can be different in special cases).

It would be better to have a dedicated email for electronic invoicing, because other kind of messages can't be managed by Odoo (they would be marked as seen).

If you use other SMTP servers for non-PEC email sending, you need to increase their priority as compared to PEC server one.

XML export state can ba forced setting 'Allow to force the supplier e-bill export state' in user's technical settings.

For every company, in
Expand Down Expand Up @@ -117,12 +147,15 @@ Contributors
* Sergio Corato <[email protected]>
* Lorenzo Battistini <https://github.com/eLBati>
* Sergio Zanchetta <https://github.com/primes2h>
* Giovanni Serra <[email protected]>

* `Tecnativa <https://www.tecnativa.com>`_:

* Víctor Martínez

* `Ooops <https://www.ooops404.com>`_:

* Giovanni Serra <[email protected]>

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

Expand Down
12 changes: 8 additions & 4 deletions l10n_it_fatturapa_pec/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

{
"name": "ITA - Fattura elettronica - Supporto PEC",
"version": "14.0.1.0.3",
"version": "14.0.1.1.0",
"category": "Localization/Italy",
"summary": "Invio fatture elettroniche tramite PEC",
"author": "Openforce Srls Unipersonale, Odoo Community Association (OCA)",
Expand All @@ -21,13 +21,17 @@
"l10n_it_sdi_channel",
],
"data": [
"security/ir.model.access.csv",
"security/groups.xml",
"views/fatturapa_attachment_out.xml",
"wizard/send_pec_view.xml",
"views/fetchmail_view.xml",
"security/ir.model.access.csv",
"data/fetchmail_data.xml",
"views/company_view.xml",
"views/sdi_view.xml",
"views/ir_mail_server.xml",
"wizard/send_pec_view.xml",
"data/fetchmail_data.xml",
"data/config_parameter.xml",
"data/sdi_channel_demo.xml",
],
"installable": True,
}
9 changes: 9 additions & 0 deletions l10n_it_fatturapa_pec/data/config_parameter.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<data noupdate="1">
<record id="sdi_pec_first_address" model="ir.config_parameter">
<field name="key">sdi.pec.first.address</field>
<field name="value">[email protected]</field>
</record>
</data>
</odoo>
9 changes: 9 additions & 0 deletions l10n_it_fatturapa_pec/data/sdi_channel_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2018 Simone Rubino - Agile Business Group
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
<odoo>
<record id="sdi_channel_pec" model="sdi.channel">
<field name="name">PEC</field>
<field name="channel_type">pec</field>
</record>
</odoo>
120 changes: 120 additions & 0 deletions l10n_it_fatturapa_pec/i18n/it.po
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ msgstr "Consentire forzatura dello stato di esportazione e-fattura"
msgid "Cancel"
msgstr "Annulla"

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,help:l10n_it_fatturapa_pec.field_sdi_channel__channel_type
msgid "Channels (Pec, Web, Sftp) could be provided by external modules."
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model,name:l10n_it_fatturapa_pec.model_res_company
msgid "Companies"
Expand Down Expand Up @@ -83,9 +88,11 @@ msgstr "Consegnato"
#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fatturapa_attachment_out__display_name
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fetchmail_server__display_name
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_ir_mail_server__display_name
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_mail_thread__display_name
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_company__display_name
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_config_settings__display_name
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_sdi_channel__display_name
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_wizard_fatturapa_send_pec__display_name
msgid "Display Name"
msgstr "Nome visualizzato"
Expand All @@ -101,11 +108,40 @@ msgstr "Creatore e-fattura"
msgid "E-invoice Export File"
msgstr "File e-fattura esportato"

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fetchmail_server__is_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_ir_mail_server__is_fatturapa_pec
msgid "E-invoice PEC server"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model,name:l10n_it_fatturapa_pec.model_sdi_channel
msgid "ES channel"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_sdi_channel__channel_type
msgid "ES channel type"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: code:addons/l10n_it_fatturapa_pec/models/sdi.py:0
#, python-format
msgid "Email %s is not valid"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model,name:l10n_it_fatturapa_pec.model_mail_thread
msgid "Email Thread"
msgstr "Discussione e-mail"

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_company__email_exchange_system
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_config_settings__email_exchange_system
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_sdi_channel__email_exchange_system
msgid "Exchange System Email Address"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: code:addons/l10n_it_fatturapa_pec/models/fetchmail.py:0
#, python-format
Expand All @@ -121,9 +157,11 @@ msgstr "Il contenuto e il nome del file sono obbligatori"
#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fatturapa_attachment_out__id
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fetchmail_server__id
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_ir_mail_server__id
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_mail_thread__id
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_company__id
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_config_settings__id
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_sdi_channel__id
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_wizard_fatturapa_send_pec__id
msgid "ID"
msgstr "ID"
Expand All @@ -133,12 +171,19 @@ msgstr "ID"
msgid "Incoming Mail Server"
msgstr "Server di posta in arrivo"

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_sdi_channel__fetch_pec_server_id
msgid "Incoming PEC server"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fatturapa_attachment_out____last_update
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fetchmail_server____last_update
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_ir_mail_server____last_update
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_mail_thread____last_update
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_company____last_update
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_config_settings____last_update
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_sdi_channel____last_update
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_wizard_fatturapa_send_pec____last_update
msgid "Last Modified on"
msgstr "Ultima modifica il"
Expand Down Expand Up @@ -169,12 +214,33 @@ msgstr "Ultimo aggiornamento il"
msgid "Last error message"
msgstr "Ultimo messaggio di errore"

#. module: l10n_it_fatturapa_pec
#: model:ir.model,name:l10n_it_fatturapa_pec.model_ir_mail_server
msgid "Mail Server"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: code:addons/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py:0
#, python-format
msgid "No incoming PEC server found. Please configure it."
msgstr "Nessun server PEC in ingresso trovato, configurarne uno."

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_sdi_channel__pec_server_id
msgid "Outgoing PEC server"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields.selection,name:l10n_it_fatturapa_pec.selection__sdi_channel__channel_type__pec
#: model:sdi.channel,name:l10n_it_fatturapa_pec.sdi_channel_pec
msgid "PEC"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model_terms:ir.ui.view,arch_db:l10n_it_fatturapa_pec.ir_mail_server_fatturapa_out_pec_form
msgid "PEC and Electronic Invoice"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fetchmail_server__pec_error_count
msgid "PEC error count"
Expand Down Expand Up @@ -211,6 +277,19 @@ msgstr ""
msgid "Reset to ready"
msgstr "Reimposta a pronto"

#. module: l10n_it_fatturapa_pec
#: code:addons/l10n_it_fatturapa_pec/models/sdi.py:0
#, python-format
msgid ""
"SDI PEC address not set. Please update it with the address indicated by SDI "
"after the first sending"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_sdi_channel__first_invoice_sent
msgid "SDI already assigned a PEC address to my company"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model_terms:ir.ui.view,arch_db:l10n_it_fatturapa_pec.wizard_fatturapa_send_pec_view
msgid "Selected files will be sent to the Exchange System"
Expand All @@ -232,6 +311,13 @@ msgstr "Invia fattura elettronica"
msgid "Send Via PEC"
msgstr "Invia con PEC"

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_ir_mail_server__email_from_for_fatturaPA
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_company__email_from_for_fatturaPA
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_res_config_settings__email_from_for_fatturaPA
msgid "Sender Email Address"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,field_description:l10n_it_fatturapa_pec.field_fatturapa_attachment_out__sending_user
msgid "Sending User"
Expand All @@ -242,6 +328,40 @@ msgstr "Utente trasmittente"
msgid "Sent by"
msgstr "Inviato da"

#. module: l10n_it_fatturapa_pec
#: model_terms:ir.ui.view,arch_db:l10n_it_fatturapa_pec.view_sdi_channel_form
msgid ""
"The ES email address must be changed ather the first invoice sent. After "
"that, you have to set here the address indicated by the ES"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: code:addons/l10n_it_fatturapa_pec/models/sdi.py:0
#, python-format
msgid "The channel %s with pec server %s already exists"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,help:l10n_it_fatturapa_pec.field_res_company__email_exchange_system
#: model:ir.model.fields,help:l10n_it_fatturapa_pec.field_res_config_settings__email_exchange_system
#: model:ir.model.fields,help:l10n_it_fatturapa_pec.field_sdi_channel__email_exchange_system
msgid ""
"The first time you send a PEC to SDI, you must use the address sdi01@pec."
"fatturapa.it . The system, with the first response or notification, "
"communicates the PEC address to be used for future messages"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: code:addons/l10n_it_fatturapa_pec/models/sdi.py:0
#, python-format
msgid "This is a first sending but SDI address is different from %s"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,help:l10n_it_fatturapa_pec.field_sdi_channel__first_invoice_sent
msgid "This is set after having sent the first e-invoice to SDI"
msgstr ""

#. module: l10n_it_fatturapa_pec
#: model:ir.model.fields,help:l10n_it_fatturapa_pec.field_res_company__e_invoice_user_id
#: model:ir.model.fields,help:l10n_it_fatturapa_pec.field_res_config_settings__e_invoice_user_id
Expand Down
Loading

0 comments on commit 707bc6e

Please sign in to comment.