Skip to content

Commit

Permalink
[FIX] l10n_it_fatturapa_in translation source strings
Browse files Browse the repository at this point in the history
  • Loading branch information
primes2h authored and TheMule71 committed Jun 9, 2021
1 parent ee8034f commit 197e569
Show file tree
Hide file tree
Showing 13 changed files with 77 additions and 77 deletions.
12 changes: 6 additions & 6 deletions l10n_it_fatturapa_in/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ Italian Localization - Fattura Elettronica - Reception

**Italiano**

Questo modulo consente di importare i file XML delle fatture elettroniche, versione 1.2
Questo modulo consente di importare i file XML della fattura elettronica versione 1.2

http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm

ricevute attraverso il Sistema di Interscambio (SDI)
ricevuti attraverso il Sistema di Interscambio (SdI).

http://www.fatturapa.gov.it/export/fatturazione/it/sdi.htm

**English**

This module allows to import XML files of electronic bills, version 1.2
This module allows to import Electronic Bill XML files version 1.2

http://www.fatturapa.gov.it/export/fatturazione/en/normativa/f-2.htm

received through the Exchange System (ES)
received through the Exchange System (ES).

http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm

Expand Down Expand Up @@ -92,7 +92,7 @@ See also the README file of l10n_it_fatturapa module.
For every supplier, it is possible to set the 'E-bills Detail Level':

- Minimum level: Bill is created with no lines; User will have to create them, according to what specified in the electronic bill
- Maximum level: every line contained in electronic bill will create a line in bill
- Maximum level: Every line contained in electronic bill will create a line in bill

Moreover, in supplier form you can set the 'E-bill Default Product': this product will be used, during generation of bills, when no other possible product is found. Tax and account of bill line will be set according to what configured in the product.

Expand All @@ -107,7 +107,7 @@ Usage

**Italiano**

* Andare su Contabilità → Acquisti → Fattura elettronica
* Andare in Contabilità → Acquisti → Fattura elettronica
* Caricare un file XML
* Visualizzare il contenuto della fattura facendo clic su "Mostra anteprima"
* Eseguire la procedura guidata "Importa e-fattura" per creare una fattura in bozza oppure "Collega a fattura esistente" per collegare il file XML a una fattura già (automaticamente) creata
Expand Down
14 changes: 7 additions & 7 deletions l10n_it_fatturapa_in/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AccountInvoice(models.Model):
ondelete='restrict', copy=False)
inconsistencies = fields.Text('Import Inconsistencies', copy=False)
e_invoice_line_ids = fields.One2many(
"einvoice.line", "invoice_id", string="Lines detail",
"einvoice.line", "invoice_id", string="Lines Detail",
readonly=True, copy=False)

@api.multi
Expand Down Expand Up @@ -43,12 +43,12 @@ def remove_attachment_link(self):
class fatturapa_article_code(models.Model):
# _position = ['2.2.1.3']
_name = "fatturapa.article.code"
_description = 'FatturaPA Article Code'
_description = 'E-bill Article Code'

name = fields.Char('Cod Type')
name = fields.Char('Code Type')
code_val = fields.Char('Code Value')
e_invoice_line_id = fields.Many2one(
'einvoice.line', 'Related E-bill line', readonly=True
'einvoice.line', 'Related E-bill Line', readonly=True
)


Expand All @@ -67,7 +67,7 @@ class AccountInvoiceLine(models.Model):
class DiscountRisePrice(models.Model):
_inherit = "discount.rise.price"
e_invoice_line_id = fields.Many2one(
'einvoice.line', 'Related E-bill line', readonly=True
'einvoice.line', 'Related E-bill Line', readonly=True
)


Expand All @@ -80,7 +80,7 @@ class EInvoiceLine(models.Model):
service_type = fields.Char('Sale Provision Type', readonly=True)
cod_article_ids = fields.One2many(
'fatturapa.article.code', 'e_invoice_line_id',
'Cod. Articles', readonly=True
'Articles Code', readonly=True
)
name = fields.Char("Description", readonly=True)
qty = fields.Float(
Expand All @@ -96,7 +96,7 @@ class EInvoiceLine(models.Model):
)
discount_rise_price_ids = fields.One2many(
'discount.rise.price', 'e_invoice_line_id',
'Discount and Supplement Price Details', readonly=True
'Discount and Supplement Details', readonly=True
)
total_price = fields.Float("Total Price", readonly=True)
tax_amount = fields.Float("VAT Rate", readonly=True)
Expand Down
8 changes: 4 additions & 4 deletions l10n_it_fatturapa_in/models/attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

class FatturaPAAttachmentIn(models.Model):
_name = "fatturapa.attachment.in"
_description = "FatturaPA import File"
_description = "E-bill import file"
_inherits = {'ir.attachment': 'ir_attachment_id'}
_inherit = ['mail.thread']
_order = 'id desc'
Expand All @@ -13,14 +13,14 @@ class FatturaPAAttachmentIn(models.Model):
'ir.attachment', 'Attachment', required=True, ondelete="cascade")
in_invoice_ids = fields.One2many(
'account.invoice', 'fatturapa_attachment_in_id',
string="In Invoices", readonly=True)
string="In Bills", readonly=True)
xml_supplier_id = fields.Many2one(
"res.partner", string="Supplier", compute="_compute_xml_data",
store=True)
invoices_number = fields.Integer(
"Invoices number", compute="_compute_xml_data", store=True)
"Bills Number", compute="_compute_xml_data", store=True)
invoices_total = fields.Float(
"Invoices total", compute="_compute_xml_data", store=True,
"Bills Total", compute="_compute_xml_data", store=True,
help="If specified by supplier, total amount of the document net of "
"any discount and including tax charged to the buyer/ordered"
)
Expand Down
4 changes: 2 additions & 2 deletions l10n_it_fatturapa_in/models/partner.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class Partner(models.Model):
comodel_name='product.product',
string='E-bill Default Product',
help="Used by electronic invoice XML import. "
"If filled, generated invoice lines will use this product, when "
"If filled in, generated bill lines will use this product when "
"no other possible product is found."
)
e_invoice_detail_level = fields.Selection([
('0', 'Minimum'),
# ('1', 'Aliquote'),
('2', 'Maximum'),
], string="E-bills Detail Level",
help="Minumum level: Bill is created with no lines; "
help="Minimum level: Bill is created with no lines; "
"User will have to create them, according to what specified in "
"the electronic bill.\n"
# "Livello Aliquote: viene creata una riga fattura per ogni "
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_in/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ See also the README file of l10n_it_fatturapa module.
For every supplier, it is possible to set the 'E-bills Detail Level':

- Minimum level: Bill is created with no lines; User will have to create them, according to what specified in the electronic bill
- Maximum level: every line contained in electronic bill will create a line in bill
- Maximum level: Every line contained in electronic bill will create a line in bill

Moreover, in supplier form you can set the 'E-bill Default Product': this product will be used, during generation of bills, when no other possible product is found. Tax and account of bill line will be set according to what configured in the product.

Expand Down
8 changes: 4 additions & 4 deletions l10n_it_fatturapa_in/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
**Italiano**

Questo modulo consente di importare i file XML delle fatture elettroniche, versione 1.2
Questo modulo consente di importare i file XML della fattura elettronica versione 1.2

http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm

ricevute attraverso il Sistema di Interscambio (SDI)
ricevuti attraverso il Sistema di Interscambio (SdI).

http://www.fatturapa.gov.it/export/fatturazione/it/sdi.htm

**English**

This module allows to import XML files of electronic bills, version 1.2
This module allows to import Electronic Bill XML files version 1.2

http://www.fatturapa.gov.it/export/fatturazione/en/normativa/f-2.htm

received through the Exchange System (ES)
received through the Exchange System (ES).

http://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_in/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
**Italiano**

* Andare su Contabilità → Acquisti → Fattura elettronica
* Andare in Contabilità → Acquisti → Fattura elettronica
* Caricare un file XML
* Visualizzare il contenuto della fattura facendo clic su "Mostra anteprima"
* Eseguire la procedura guidata "Importa e-fattura" per creare una fattura in bozza oppure "Collega a fattura esistente" per collegare il file XML a una fattura già (automaticamente) creata
Expand Down
12 changes: 6 additions & 6 deletions l10n_it_fatturapa_in/static/description/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,14 @@ <h1 class="title">Italian Localization - Fattura Elettronica - Reception</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<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_in"><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_in"><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><strong>Italiano</strong></p>
<p>Questo modulo consente di importare i file XML delle fatture elettroniche, versione 1.2</p>
<p>Questo modulo consente di importare i file XML della fattura elettronica versione 1.2</p>
<p><a class="reference external" href="http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm">http://www.fatturapa.gov.it/export/fatturazione/it/normativa/f-2.htm</a></p>
<p>ricevute attraverso il Sistema di Interscambio (SDI)</p>
<p>ricevuti attraverso il Sistema di Interscambio (SdI).</p>
<p><a class="reference external" href="http://www.fatturapa.gov.it/export/fatturazione/it/sdi.htm">http://www.fatturapa.gov.it/export/fatturazione/it/sdi.htm</a></p>
<p><strong>English</strong></p>
<p>This module allows to import XML files of electronic bills, version 1.2</p>
<p>This module allows to import Electronic Bill XML files version 1.2</p>
<p><a class="reference external" href="http://www.fatturapa.gov.it/export/fatturazione/en/normativa/f-2.htm">http://www.fatturapa.gov.it/export/fatturazione/en/normativa/f-2.htm</a></p>
<p>received through the Exchange System (ES)</p>
<p>received through the Exchange System (ES).</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><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down Expand Up @@ -423,7 +423,7 @@ <h1><a class="toc-backref" href="#id2">Configuration</a></h1>
<blockquote>
<ul class="simple">
<li>Minimum level: Bill is created with no lines; User will have to create them, according to what specified in the electronic bill</li>
<li>Maximum level: every line contained in electronic bill will create a line in bill</li>
<li>Maximum level: Every line contained in electronic bill will create a line in bill</li>
</ul>
</blockquote>
<p>Moreover, in supplier form you can set the ‘E-bill Default Product’: this product will be used, during generation of bills, when no other possible product is found. Tax and account of bill line will be set according to what configured in the product.</p>
Expand All @@ -436,7 +436,7 @@ <h1><a class="toc-backref" href="#id3">Usage</a></h1>
<p><strong>Italiano</strong></p>
<blockquote>
<ul class="simple">
<li>Andare su Contabilità → Acquisti → Fattura elettronica</li>
<li>Andare in Contabilità → Acquisti → Fattura elettronica</li>
<li>Caricare un file XML</li>
<li>Visualizzare il contenuto della fattura facendo clic su “Mostra anteprima”</li>
<li>Eseguire la procedura guidata “Importa e-fattura” per creare una fattura in bozza oppure “Collega a fattura esistente” per collegare il file XML a una fattura già (automaticamente) creata</li>
Expand Down
24 changes: 12 additions & 12 deletions l10n_it_fatturapa_in/tests/test_import_fatturapa_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ def test_04_xml_import(self):
e_line.cod_article_ids[0].code_val, '12345')
self.assertEqual(
invoice.inconsistencies,
u'Company Name field contains "Societa\' '
'Alpha SRL". Your System contains "SOCIETA\' ALPHA SRL"\n\n')
u"Company Name field contains 'Societa\' "
"Alpha SRL'. Your System contains 'SOCIETA\' ALPHA SRL'\n\n")

def test_05_xml_import(self):
self.env.user.company_id.dati_bollo_product_id = (
Expand Down Expand Up @@ -330,12 +330,12 @@ def test_13_xml_import(self):
invoice2 = self.invoice_model.browse(invoice2_id)
self.assertEqual(
invoice1.inconsistencies,
u'Company Name field contains "Societa\' '
'Alpha SRL". Your System contains "SOCIETA\' ALPHA SRL"\n\n')
u"Company Name field contains 'Societa\' "
"Alpha SRL'. Your System contains 'SOCIETA\' ALPHA SRL'\n\n")
self.assertEqual(
invoice2.inconsistencies,
u'Company Name field contains "Societa\' '
'Alpha SRL". Your System contains "SOCIETA\' ALPHA SRL"\n\n')
u"Company Name field contains 'Societa\' "
"Alpha SRL'. Your System contains 'SOCIETA\' ALPHA SRL'\n\n")

def test_14_xml_import(self):
# check: no tax code found , write inconsisteance and anyway
Expand All @@ -349,12 +349,12 @@ def test_14_xml_import(self):
self.assertEqual(invoice.amount_tax, 0.0)
self.assertEqual(
invoice.inconsistencies,
u'Company Name field contains "Societa\' '
'Alpha SRL". Your System contains "SOCIETA\' ALPHA SRL"\n\n'
'XML contains tax with percentage "15.55"'
' but it does not exist in your system\n'
'XML contains tax with percentage "15.55"'
' but it does not exist in your system')
u"Company Name field contains 'Societa\' "
"Alpha SRL'. Your System contains 'SOCIETA\' ALPHA SRL'\n\n"
u"XML contains tax with percentage '15.55'"
" but it does not exist in your system\n"
"XML contains tax with percentage '15.55'"
" but it does not exist in your system")

def test_15_xml_import(self):
self.wt = self.create_wt()
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_in/views/account_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@
</form>
</field>
</group>
<group string="SAL data">
<group string="Progress data">
<field name="activity_progress_ids" nolabel="1" readonly="1" colspan="2">
<tree>
<field name="fatturapa_activity_progress"></field>
Expand Down
2 changes: 1 addition & 1 deletion l10n_it_fatturapa_in/wizard/link_to_existing_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ def link(self):
self.ensure_one()
active_ids = self.env.context.get('active_ids')
if len(active_ids) != 1:
raise UserError(_("You can select only 1 XML file to link"))
raise UserError(_("You can select only one XML file to link."))
self.invoice_id.fatturapa_attachment_in_id = active_ids[0]
Loading

0 comments on commit 197e569

Please sign in to comment.