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

[16.0][MIG] l10n_it_fatturapa_pec #3190

Merged
merged 65 commits into from
Sep 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
1278ca4
IMP README, SDI , attachment and invoice view
eLBati Nov 12, 2018
ce4eb12
[FIX] ensure one
sergiocorato Nov 12, 2018
88cdd23
IMP README
eLBati Nov 13, 2018
bae907c
[FIX] compute method start with _
sergiocorato Nov 15, 2018
a3b6c13
porting l10n_it_fatturapa_pec to 12
eLBati Nov 17, 2018
a0754ef
IMP l10n_it_sdi_channel interface
eLBati Nov 20, 2018
8a06b30
l10n_it_fatturapa_pec: check possible fetch errors and track them (#682)
eLBati Nov 29, 2018
084ad9c
[IMP] l10n_it_fatturapa_pec revamp manifest and README
primes2h Dec 1, 2018
d02c950
Set reply_to and Return-Path to build explicitly email message, witho…
eLBati Dec 6, 2018
62043c6
ADD l10n_it_fatturapa_pec/i18n/it.po
eLBati Dec 9, 2018
ec277fc
[FIX] fatturapa titles using italian guidelines (#718)
primes2h Dec 12, 2018
5361923
[IMP] l10n_it_fatturapa_pec: Add tests
SimoRubi Dec 12, 2018
5149b81
Translated using Weblate (Italian)
primes2h Dec 16, 2018
86322c5
[IMP] l10n_it_fatturapa_pec state related source strings (#736)
primes2h Dec 27, 2018
2986122
Translated using Weblate (Italian)
primes2h Dec 28, 2018
b620de7
IMP l10n_it_fatturapa_pec allowing user to configure contacts to be n…
eLBati Jan 5, 2019
337ef61
FIX l10n_it_fatturapa_pec: sending PEC with invoicing user raises per…
eLBati Jan 7, 2019
651c170
"mancata consegna" is the correct notification for invoices sent to i…
eLBati Jan 15, 2019
3c85144
Translated using Weblate (Italian)
primes2h Jan 25, 2019
70632c6
IMP l10n_it_fatturapa_pec avoiding to block fetchmail server in case …
eLBati Feb 1, 2019
7ba324d
IMP l10n_it_fatturapa_pec allowing to force the XML export state. (#935)
eLBati Feb 4, 2019
dd5e019
Translated using Weblate (Italian)
primes2h Feb 4, 2019
df102ed
Translated using Weblate (Italian)
primes2h Feb 8, 2019
9e4143d
FIX l10n_it_fatturapa_pec when user removes file content and tries to…
eLBati Feb 5, 2019
4a6c59d
Translated using Weblate (Italian)
primes2h Mar 7, 2019
f0e1a01
[FIX] valid other countries intermediary filename (#1133)
sergiocorato Apr 9, 2019
d1f1428
[FIX] l10n_it_fatturapa_pec
d-stragapede Apr 16, 2019
e726d15
FIX l10n_it_fatturapa_pec adapt to new set_sequences API and new file…
eLBati Mar 7, 2019
08cf7bc
Translated using Weblate (Italian)
eLBati Jun 2, 2019
3dab034
FIX lint for l10n_it_fatturapa_pec/models/fetchmail.py as self._cr.co…
eLBati Jul 11, 2019
eee5a7f
l10n_it_fatturapa_pec: IMP e-invoice modules: multi company
eLBati Jan 17, 2019
f641905
[12.0][l10n_it_fatturapa_pec] Cleanup company details and fix related…
robyf70 Aug 1, 2019
494f28e
[12.0][IMP][l10n_it_fatturapa_in] Set the supplier invoice bill regis…
robyf70 Jul 17, 2019
f115303
Translated using Weblate (Italian)
primes2h Dec 23, 2019
fe059b6
Translated using Weblate (Italian)
primes2h Jan 2, 2020
9c6e37d
Translated using Weblate (Italian)
primes2h Jan 7, 2020
2c692bf
FIX l10n_it_fatturapa_pec website
eLBati Jan 9, 2020
80436e7
[IMP] l10n_it_fatturapa_pec: Always e-mail contacts about pec errors …
SimoRubi Aug 26, 2019
de2ec8f
FIX e_inv_notify_partner_ids for v12: tests are run by OdooBot that i…
eLBati Dec 19, 2019
5e6b09f
merge PR 1264 1717 1728 1737 1739
May 13, 2020
1b3809b
IMP l10n_it_fatturapa_pec notifying errors using email subject instea…
eLBati Jun 23, 2020
a8989c0
Translated using Weblate (Italian)
eLBati Jun 23, 2020
fc15549
[FIX] Find fatturapa_attachment_out res by signed attach_name
frdmar Mar 5, 2020
860ad60
[FIX] attach state on EC01 email text result
frdmar Mar 4, 2020
429cf47
IMP l10n_it_fatturapa_pec seding notifications of errors immediatly.
eLBati Jul 18, 2020
a3d99ea
Translated using Weblate (Italian)
eLBati Jul 20, 2020
1dbfc36
FIX license compatibility
eLBati Sep 10, 2020
6f80316
[FIX] l10n_it_fatturapa_in: Mute parsing exception when reading data …
SimoRubi Sep 18, 2020
3cca9cc
[10.0][l10n_it_fatturapa_out] Aggiunge la possibilità di specificare …
robyf70 Dec 18, 2019
9bd1d1b
[10.0][l10n_it_fatturapa_pec] Generalize a bit the method _create_e_i…
robyf70 Aug 1, 2020
7f0c433
[10.0][l10n_it_fatturapa_pec] Add test case for e-invoice regeneration
robyf70 Aug 1, 2020
c8d3e9c
Port https://github.com/OCA/l10n-italy/pull/1565 to 12
eLBati Sep 4, 2020
0035d60
[FIX] l10n_it_fatturapa_pec: Fix test_sender_error
victoralmau Dec 14, 2020
7e97dc4
Translated using Weblate (Italian)
primes2h Feb 3, 2021
9cc0cb3
Allow to cancel (and re-generate) invoice when e-invoice is in error …
eLBati Feb 5, 2021
5051064
move state from fatturapa_pec to fatturapa_out
GSLabIt Feb 18, 2021
3b2af8e
[12.0][IMP] move all state related code from fatturapa_pec to fattura…
GSLabIt Feb 25, 2021
3eabc03
[IMP] l10n_it_fatturapa_pec: black, isort, prettier
Borruso Oct 15, 2021
337e25f
[MIG] l10n_it_fatturapa_pec: Migration to 14.0
Borruso Oct 15, 2021
f465def
[FIX] l10n_it_fatturapa_pec: fix test tags
TheMule71 Apr 15, 2022
e876d57
FIX l10n_it_fatturapa_pec when e-invoice sent file name is in wrong f…
eLBati Mar 9, 2022
8db16dc
[FIX] l10n_it_fatturapa_pec: Attachment might be a string
SirTakobi Jun 17, 2022
c925d71
[14.0][IMP] l10n_it_fatturapa_pec: decoupling from l10n_it_sdi_channel.
GSLabIt Oct 10, 2022
1b99272
[IMP] l10n_it_fatturapa_pec: pre-commit stuff
Borruso Feb 23, 2023
847deff
[MIG] l10n_it_fatturapa_pec: Migration to 16.0
Borruso Feb 24, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
175 changes: 175 additions & 0 deletions l10n_it_fatturapa_pec/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,175 @@
========================================
ITA - Fattura elettronica - Supporto PEC
========================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-italy/tree/16.0/l10n_it_fatturapa_pec
:alt: OCA/l10n-italy
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_fatturapa_pec
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/webui/builds.html?repo=OCA/l10n-italy&target_branch=16.0
:alt: Try me on Runboat

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

**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.

**Table of contents**

.. contents::
:local:

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

**Italiano**

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

Contabilità → Configurazione → Impostazioni → Fatture elettroniche

specificare l'utente che sarà utilizzato come creatore delle e-fatture fornitore create dalla PEC.

**English**

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

Accounting → Configuration → Settings → Electronic Invoices

set the user who will be used as creator of supplier e-bill automatically created from PEC.

Usage
=====

**Italiano**

Nell'allegato fattura elettronica in uscita fare clic sul pulsante "Invia con PEC".

Le fatture elettroniche fornitore vengono create in modo automatico, prelevate dalla casella PEC.

**English**

In electronic invoice out attachment you can click "Send Via PEC" button.

Supplier electronic bills are automatically created, fetched from PEC mailbox.

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 <https://github.com/OCA/l10n-italy/issues/new?body=module:%20l10n_it_fatturapa_pec%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Openforce Srls Unipersonale

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

* Andrea Colangelo <[email protected]>
* Sergio Corato <[email protected]>
* Lorenzo Battistini <https://github.com/eLBati>
* Sergio Zanchetta <https://github.com/primes2h>

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

* Víctor Martínez

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

* Giovanni Serra <[email protected]>
* Giuseppe Borruso <[email protected]>

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/16.0/l10n_it_fatturapa_pec>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
2 changes: 2 additions & 0 deletions l10n_it_fatturapa_pec/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import models
from . import wizard
42 changes: 42 additions & 0 deletions l10n_it_fatturapa_pec/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Author(s): Andrea Colangelo ([email protected])
# Copyright 2018 Openforce Srls Unipersonale (www.openforce.it)
# Copyright 2018-2019 Sergio Corato (https://efatto.it)
# Copyright 2018-2019 Lorenzo Battistini <https://github.com/eLBati>
# Copyright 2018 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo)
# Copyright 2019 Roberto Fichera (https://levelprime.com)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "ITA - Fattura elettronica - Supporto PEC",
"version": "16.0.1.0.0",
"category": "Localization/Italy",
"summary": "Invio fatture elettroniche tramite PEC",
"author": "Openforce Srls Unipersonale, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/l10n-italy",
"license": "AGPL-3",
"depends": [
"mail",
"l10n_it_fatturapa_out",
"l10n_it_fatturapa_in",
"l10n_it_sdi_channel",
],
"data": [
"security/ir.model.access.csv",
"security/groups.xml",
"views/fatturapa_attachment_out.xml",
"views/fetchmail_view.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,
"external_dependencies": {
"python": [
"mock",
],
},
}
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 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>

</odoo>
9 changes: 9 additions & 0 deletions l10n_it_fatturapa_pec/data/fetchmail_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<record id="fetchmail_pec_max_retry" model="ir.config_parameter">
<field name="key">fetchmail.pec.max.retry</field>
<field name="value">5</field>
</record>

</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>
Loading
Loading