Skip to content

Commit

Permalink
[IMP] l10n_it_fatturapa_pec revamp manifest and README
Browse files Browse the repository at this point in the history
[FIX] l10n_it_fatturapa_pec translation source strings

[IMP] l10n_it_sdi_channel revamp README and manifest (OCA#692)

[FIX] l10n_it_sdi_channel FatturaPA/translation source strings

[IMP] l10n_it_sdi_channel set ITA name and summary

[IMP] fatturapa modules, set ITA name and summary (OCA#694)

[FIX] l10n_it_fatturapa_in typos in source translation strings
  • Loading branch information
primes2h authored and Borruso committed Jul 21, 2023
1 parent 8a06b30 commit 084ad9c
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 33 deletions.
41 changes: 35 additions & 6 deletions l10n_it_fatturapa_pec/README.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
=========================================================
Italian Localization - FatturaPA - Emission - PEC Support
Italian Localization - Fattura Elettronica - Supporto PEC
=========================================================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Expand All @@ -25,11 +25,25 @@ Italian Localization - FatturaPA - Emission - PEC Support

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

This module allows you to send and receive electronic invoice XML file version 1.2
**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 SDI are parsed and transmission state is tracked.
via PEC.

Notifications from ES are parsed and transmission state is tracked.

**Table of contents**

Expand All @@ -39,14 +53,28 @@ Notifications from SDI are parsed and transmission state is tracked.
Configuration
=============

See `l10n_it_sdi_channel` module
**Italiano**

Consultare il modulo `l10n_it_sdi_channel`.

**English**

See `l10n_it_sdi_channel` module.

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 invoices are automatically created, fetched from PEC mailbox.
Supplier electronic bills are automatically created, fetched from PEC mailbox.

Bug Tracker
===========
Expand All @@ -72,6 +100,7 @@ Contributors
* Andrea Colangelo <[email protected]>
* Sergio Corato <[email protected]>
* Lorenzo Battistini <https://github.com/eLBati>
* Sergio Zanchetta <https://github.com/primes2h>

Maintainers
~~~~~~~~~~~
Expand Down
8 changes: 5 additions & 3 deletions l10n_it_fatturapa_pec/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@
# Copyright 2018 Openforce Srls Unipersonale (www.openforce.it)
# Copyright 2018 Sergio Corato (https://efatto.it)
# Copyright 2018 Lorenzo Battistini <https://github.com/eLBati>
# Copyright 2018 Sergio Zanchetta (Associazione PNLUG - Gruppo Odoo)
# License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).

{
'name': 'Italian Localization - FatturaPA - Emission - PEC Support',
'name': 'Italian Localization - Fattura Elettronica - Supporto PEC',
'version': '12.0.1.1.0',
'category': 'Localization/Italy',
'summary': 'Send electronic invoices via PEC',
'summary': 'Invio fatture elettroniche tramite PEC',
'author': 'Openforce Srls Unipersonale, Odoo Community Association (OCA)',
'website': 'https://github.com/OCA/l10n-italy',
'website': 'https://github.com/OCA/l10n-italy/tree/10.0/'
'l10n_it_fatturapa_pec',
'license': 'LGPL-3',
'depends': [
'fetchmail',
Expand Down
12 changes: 6 additions & 6 deletions l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ class FatturaPAAttachmentOut(models.Model):
last_sdi_response = fields.Text(
string='Last Response from Exchange System', default='No response yet',
readonly=True)
sending_date = fields.Datetime("Sent date", readonly=True)
delivered_date = fields.Datetime("Delivered date", readonly=True)
sending_user = fields.Many2one("res.users", "Sending user", readonly=True)
sending_date = fields.Datetime("Sent Date", readonly=True)
delivered_date = fields.Datetime("Delivered Date", readonly=True)
sending_user = fields.Many2one("res.users", "Sending User", readonly=True)

@api.multi
def reset_to_ready(self):
for att in self:
if att.state != 'sender_error':
raise UserError(_("You can only reset 'sender error' files"))
raise UserError(_("You can only reset 'sender error' files."))
att.state = 'ready'

@api.model
Expand All @@ -62,7 +62,7 @@ def send_via_pec(self):
self.env.user.company_id.sdi_channel_id.check_first_pec_sending()
states = self.mapped('state')
if set(states) != set(['ready']):
raise UserError(_("You can only send 'ready to send' files"))
raise UserError(_("You can only send 'ready to send' files."))
for att in self:
mail_message = self.env['mail.message'].create({
'model': self._name,
Expand Down Expand Up @@ -258,6 +258,6 @@ def unlink(self):
for att in self:
if att.state != 'ready':
raise UserError(_(
"You can only delete 'ready to send' files"
"You can only delete 'ready to send' files."
))
return super(FatturaPAAttachmentOut, self).unlink()
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_pec/models/fetchmail.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
class Fetchmail(models.Model):
_inherit = 'fetchmail.server'
last_pec_error_message = fields.Text(
"Last PEC error message", readonly=True)
"Last PEC Error Message", readonly=True)

@api.multi
def fetch_mail(self):
Expand Down
8 changes: 7 additions & 1 deletion l10n_it_fatturapa_pec/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
See `l10n_it_sdi_channel` module
**Italiano**

Consultare il modulo `l10n_it_sdi_channel`.

**English**

See `l10n_it_sdi_channel` module.
1 change: 1 addition & 0 deletions l10n_it_fatturapa_pec/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Andrea Colangelo <[email protected]>
* Sergio Corato <[email protected]>
* Lorenzo Battistini <https://github.com/eLBati>
* Sergio Zanchetta <https://github.com/primes2h>
20 changes: 17 additions & 3 deletions l10n_it_fatturapa_pec/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
This module allows you to send and receive electronic invoice XML file version 1.2
**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

Notifications from SDI are parsed and transmission state is tracked.
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.
10 changes: 9 additions & 1 deletion l10n_it_fatturapa_pec/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
**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 invoices are automatically created, fetched from PEC mailbox.
Supplier electronic bills are automatically created, fetched from PEC mailbox.
32 changes: 23 additions & 9 deletions l10n_it_fatturapa_pec/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
<title>Italian Localization - FatturaPA - Emission - PEC Support</title>
<title>Italian Localization - Fattura Elettronica - Supporto PEC</title>
<style type="text/css">

/*
Expand Down Expand Up @@ -360,18 +360,24 @@
</style>
</head>
<body>
<div class="document" id="italian-localization-fatturapa-emission-pec-support">
<h1 class="title">Italian Localization - FatturaPA - Emission - PEC Support</h1>
<div class="document" id="italian-localization-fattura-elettronica-supporto-pec">
<h1 class="title">Italian Localization - Fattura Elettronica - Supporto PEC</h1>

<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/l10n-italy/tree/12.0/l10n_it_fatturapa_pec"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/l10n-italy-12-0/l10n-italy-12-0-l10n_it_fatturapa_pec"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/122/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
<p>This module allows you to send and receive electronic invoice XML file version 1.2
<a class="reference external" href="http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm">http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm</a>
via PEC</p>
<p>Notifications from SDI are parsed and transmission state is tracked.</p>
<p><strong>Italiano</strong></p>
<p>Questo modulo consente di inviare e ricevere i file XML della fattura elettronica versione 1.2</p>
<p><a class="reference external" href="http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm">http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm</a></p>
<p>via PEC.</p>
<p>Analizza le notifiche provenienti dallo SdI e monitora lo stato della trasmissione.</p>
<p><strong>English</strong></p>
<p>This module allows you to send and receive electronic invoice/bill XML files version 1.2</p>
<p><a class="reference external" href="http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm">http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm</a></p>
<p>via PEC.</p>
<p>Notifications from ES are parsed and transmission state is tracked.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
Expand All @@ -388,12 +394,19 @@ <h1 class="title">Italian Localization - FatturaPA - Emission - PEC Support</h1>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#id1">Configuration</a></h1>
<p>See <cite>l10n_it_sdi_channel</cite> module</p>
<p><strong>Italiano</strong></p>
<p>Consultare il modulo <cite>l10n_it_sdi_channel</cite>.</p>
<p><strong>English</strong></p>
<p>See <cite>l10n_it_sdi_channel</cite> module.</p>
</div>
<div class="section" id="usage">
<h1><a class="toc-backref" href="#id2">Usage</a></h1>
<p><strong>Italiano</strong></p>
<p>Nell’allegato fattura elettronica in uscita fare clic sul pulsante “Invia con PEC”.</p>
<p>Le fatture elettroniche fornitore vengono create in modo automatico, prelevate dalla casella PEC.</p>
<p><strong>English</strong></p>
<p>In electronic invoice out attachment you can click “Send Via PEC” button.</p>
<p>Supplier electronic invoices are automatically created, fetched from PEC mailbox.</p>
<p>Supplier electronic bills are automatically created, fetched from PEC mailbox.</p>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#id3">Bug Tracker</a></h1>
Expand All @@ -417,6 +430,7 @@ <h2><a class="toc-backref" href="#id6">Contributors</a></h2>
<li>Andrea Colangelo &lt;<a class="reference external" href="mailto:andreacolangelo&#64;openforce.it">andreacolangelo&#64;openforce.it</a>&gt;</li>
<li>Sergio Corato &lt;<a class="reference external" href="mailto:info&#64;efatto.it">info&#64;efatto.it</a>&gt;</li>
<li>Lorenzo Battistini &lt;<a class="reference external" href="https://github.com/eLBati">https://github.com/eLBati</a>&gt;</li>
<li>Sergio Zanchetta &lt;<a class="reference external" href="https://github.com/primes2h">https://github.com/primes2h</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
Expand Down
6 changes: 3 additions & 3 deletions l10n_it_fatturapa_pec/views/account.xml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@
<field name="arch" type="xml">
<xpath expr="//filter[@name='late']" position="after">
<separator/>
<filter name="fatturapa_ready" string="Fattura Elettronica Ready to Send" domain="[('fatturapa_state','=','ready')]"/>
<filter name="fatturapa_errors" string="Fattura Elettronica Error" domain="[('fatturapa_state','=','error')]"/>
<filter name="fatturapa_ready" string="Electronic Invoice Ready to Send" domain="[('fatturapa_state','=','ready')]"/>
<filter name="fatturapa_errors" string="Electronic Invoice Error" domain="[('fatturapa_state','=','error')]"/>
</xpath>

<xpath expr="//group" position="inside">
<filter name="group_by_ftpa_state" string="Fattura Elettronica State" context="{'group_by':'fatturapa_state'}"/>
<filter name="group_by_ftpa_state" string="Electronic Invoice State" context="{'group_by':'fatturapa_state'}"/>
</xpath>
</field>
</record>
Expand Down

0 comments on commit 084ad9c

Please sign in to comment.