From 084ad9c5876fcfc9fb5cbff341e40ac4b62c0f56 Mon Sep 17 00:00:00 2001 From: Sergio Zanchetta Date: Sat, 1 Dec 2018 17:50:00 +0100 Subject: [PATCH] [IMP] l10n_it_fatturapa_pec revamp manifest and README [FIX] l10n_it_fatturapa_pec translation source strings [IMP] l10n_it_sdi_channel revamp README and manifest (#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 (#694) [FIX] l10n_it_fatturapa_in typos in source translation strings --- l10n_it_fatturapa_pec/README.rst | 41 ++++++++++++++++--- l10n_it_fatturapa_pec/__manifest__.py | 8 ++-- .../models/fatturapa_attachment_out.py | 12 +++--- l10n_it_fatturapa_pec/models/fetchmail.py | 2 +- l10n_it_fatturapa_pec/readme/CONFIGURE.rst | 8 +++- l10n_it_fatturapa_pec/readme/CONTRIBUTORS.rst | 1 + l10n_it_fatturapa_pec/readme/DESCRIPTION.rst | 20 +++++++-- l10n_it_fatturapa_pec/readme/USAGE.rst | 10 ++++- .../static/description/index.html | 32 +++++++++++---- l10n_it_fatturapa_pec/views/account.xml | 6 +-- 10 files changed, 107 insertions(+), 33 deletions(-) diff --git a/l10n_it_fatturapa_pec/README.rst b/l10n_it_fatturapa_pec/README.rst index f95aa47d06e5..93e2d69da28d 100644 --- a/l10n_it_fatturapa_pec/README.rst +++ b/l10n_it_fatturapa_pec/README.rst @@ -1,5 +1,5 @@ ========================================================= -Italian Localization - FatturaPA - Emission - PEC Support +Italian Localization - Fattura Elettronica - Supporto PEC ========================================================= .. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! @@ -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** @@ -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 =========== @@ -72,6 +100,7 @@ Contributors * Andrea Colangelo * Sergio Corato * Lorenzo Battistini +* Sergio Zanchetta Maintainers ~~~~~~~~~~~ diff --git a/l10n_it_fatturapa_pec/__manifest__.py b/l10n_it_fatturapa_pec/__manifest__.py index 691265480969..09de7508c81b 100644 --- a/l10n_it_fatturapa_pec/__manifest__.py +++ b/l10n_it_fatturapa_pec/__manifest__.py @@ -2,15 +2,17 @@ # Copyright 2018 Openforce Srls Unipersonale (www.openforce.it) # Copyright 2018 Sergio Corato (https://efatto.it) # Copyright 2018 Lorenzo Battistini +# 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', diff --git a/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py b/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py index acc37ea90551..e356703180fe 100644 --- a/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py +++ b/l10n_it_fatturapa_pec/models/fatturapa_attachment_out.py @@ -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 @@ -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, @@ -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() diff --git a/l10n_it_fatturapa_pec/models/fetchmail.py b/l10n_it_fatturapa_pec/models/fetchmail.py index 40c78d2f0ccb..a8db7916d7cf 100644 --- a/l10n_it_fatturapa_pec/models/fetchmail.py +++ b/l10n_it_fatturapa_pec/models/fetchmail.py @@ -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): diff --git a/l10n_it_fatturapa_pec/readme/CONFIGURE.rst b/l10n_it_fatturapa_pec/readme/CONFIGURE.rst index e57ec1281819..ca85c7d9ae1d 100644 --- a/l10n_it_fatturapa_pec/readme/CONFIGURE.rst +++ b/l10n_it_fatturapa_pec/readme/CONFIGURE.rst @@ -1 +1,7 @@ -See `l10n_it_sdi_channel` module +**Italiano** + +Consultare il modulo `l10n_it_sdi_channel`. + +**English** + +See `l10n_it_sdi_channel` module. diff --git a/l10n_it_fatturapa_pec/readme/CONTRIBUTORS.rst b/l10n_it_fatturapa_pec/readme/CONTRIBUTORS.rst index 7f63b79cc053..1f704e5a8bce 100644 --- a/l10n_it_fatturapa_pec/readme/CONTRIBUTORS.rst +++ b/l10n_it_fatturapa_pec/readme/CONTRIBUTORS.rst @@ -1,3 +1,4 @@ * Andrea Colangelo * Sergio Corato * Lorenzo Battistini +* Sergio Zanchetta diff --git a/l10n_it_fatturapa_pec/readme/DESCRIPTION.rst b/l10n_it_fatturapa_pec/readme/DESCRIPTION.rst index aaab749107ef..c9a192f88591 100644 --- a/l10n_it_fatturapa_pec/readme/DESCRIPTION.rst +++ b/l10n_it_fatturapa_pec/readme/DESCRIPTION.rst @@ -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. diff --git a/l10n_it_fatturapa_pec/readme/USAGE.rst b/l10n_it_fatturapa_pec/readme/USAGE.rst index 51a873129961..addde6cfe16b 100644 --- a/l10n_it_fatturapa_pec/readme/USAGE.rst +++ b/l10n_it_fatturapa_pec/readme/USAGE.rst @@ -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. diff --git a/l10n_it_fatturapa_pec/static/description/index.html b/l10n_it_fatturapa_pec/static/description/index.html index a33bd896983f..3b4082ec3894 100644 --- a/l10n_it_fatturapa_pec/static/description/index.html +++ b/l10n_it_fatturapa_pec/static/description/index.html @@ -4,7 +4,7 @@ -Italian Localization - FatturaPA - Emission - PEC Support +Italian Localization - Fattura Elettronica - Supporto PEC -
-

Italian Localization - FatturaPA - Emission - PEC Support

+
+

Italian Localization - Fattura Elettronica - Supporto PEC

Beta License: LGPL-3 OCA/l10n-italy Translate me on Weblate Try me on Runbot

-

This module allows you to send and receive electronic invoice XML file 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.

+

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

    @@ -388,12 +394,19 @@

    Italian Localization - FatturaPA - Emission - PEC Support

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

@@ -417,6 +430,7 @@

Contributors

  • Andrea Colangelo <andreacolangelo@openforce.it>
  • Sergio Corato <info@efatto.it>
  • Lorenzo Battistini <https://github.com/eLBati>
  • +
  • Sergio Zanchetta <https://github.com/primes2h>
  • diff --git a/l10n_it_fatturapa_pec/views/account.xml b/l10n_it_fatturapa_pec/views/account.xml index 27ae2a42513a..993fd7f90ed5 100644 --- a/l10n_it_fatturapa_pec/views/account.xml +++ b/l10n_it_fatturapa_pec/views/account.xml @@ -29,12 +29,12 @@ - - + + - +