Skip to content

Commit

Permalink
[I18N] l10n_it_edi_website_sale: correct and translate terms
Browse files Browse the repository at this point in the history
Correct the terms in this module and translate them in Italian.

closes odoo#156502

X-original-commit: 8f4ded8
Signed-off-by: Tiffany Chang (tic) <tic@odoo.com>
Signed-off-by: Dylan Kiss (dyki) <dyki@odoo.com>
  • Loading branch information
dylankiss committed Mar 5, 2024
1 parent 37b0ea8 commit a588a7e
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/l10n_it_edi_website_sale/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ def checkout_form_validate(self, mode, all_form_values, data):
if pa_index:
if len(pa_index) < 6 or len(pa_index) > 7:
error['l10n_it_pa_index'] = 'error'
error_message.append(_('PA index must have between 6 and 7 characters'))
error_message.append(_('Destination Code (SDI) must have between 6 and 7 characters'))
return error, error_message
33 changes: 33 additions & 0 deletions addons/l10n_it_edi_website_sale/i18n/it.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_edi_website_sale
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-29 14:22+0000\n"
"PO-Revision-Date: 2024-02-29 12:07+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: it\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: l10n_it_edi_website_sale
#: model_terms:ir.ui.view,arch_db:l10n_it_edi_website_sale.address_b2b
msgid "Codice Fiscale"
msgstr "Codice Fiscale"

#. module: l10n_it_edi_website_sale
#: model_terms:ir.ui.view,arch_db:l10n_it_edi_website_sale.address_b2b
msgid "Destination Code (SDI)"
msgstr "Codice Destinatario (SDI)"

#. module: l10n_it_edi_website_sale
#: code:addons/l10n_it_edi_website_sale/controllers/main.py:0
#, python-format
msgid "Destination Code (SDI) must have between 6 and 7 characters"
msgstr "Il Codice Destinatario (SDI) deve avere tra 6 e 7 caratteri"
32 changes: 32 additions & 0 deletions addons/l10n_it_edi_website_sale/i18n/l10n_it_edi_website_sale.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_it_edi_website_sale
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-29 14:22+0000\n"
"PO-Revision-Date: 2024-02-29 14:22+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: l10n_it_edi_website_sale
#: model_terms:ir.ui.view,arch_db:l10n_it_edi_website_sale.address_b2b
msgid "Codice Fiscale"
msgstr ""

#. module: l10n_it_edi_website_sale
#: model_terms:ir.ui.view,arch_db:l10n_it_edi_website_sale.address_b2b
msgid "Destination Code (SDI)"
msgstr ""

#. module: l10n_it_edi_website_sale
#: code:addons/l10n_it_edi_website_sale/controllers/main.py:0
#, python-format
msgid "Destination Code (SDI) must have between 6 and 7 characters"
msgstr ""
4 changes: 2 additions & 2 deletions addons/l10n_it_edi_website_sale/views/templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<t t-if="res_company.account_fiscal_country_id.code == 'IT'">
<div class="w-100"/>
<div t-attf-class="mb-3 #{error.get('vat') and 'o_has_error' or ''} col-lg-6 div_l10n_it_codice_fiscale mb-0" id="div_l10n_it_codice_fiscale">
<label class="col-form-label fw-normal label-optional" for="l10n_it_codice_fiscale">Codice Fiscale </label>
<label class="col-form-label fw-normal label-optional" for="l10n_it_codice_fiscale">Codice Fiscale</label>
<input type="text" name="l10n_it_codice_fiscale" t-attf-class="form-control #{error.get('l10n_it_codice_fiscale') and 'is-invalid' or ''}" t-att-value="'l10n_it_codice_fiscale' in checkout and checkout['l10n_it_codice_fiscale']"/>
</div>
<div t-attf-class="mb-3 #{error.get('vat') and 'o_has_error' or ''} col-lg-6 div_l10n_it_pa_index mb-0" id="div_l10n_it_pa_index">
<label class="col-form-label fw-normal label-optional" for="l10n_it_pa_index">PA index </label>
<label class="col-form-label fw-normal label-optional" for="l10n_it_pa_index">Destination Code (SDI)</label>
<input type="text" name="l10n_it_pa_index" t-attf-class="form-control #{error.get('l10n_it_pa_index') and 'is-invalid' or ''}" t-att-value="'l10n_it_codice_fiscale' in checkout and checkout['l10n_it_codice_fiscale']"/>
</div>
</t>
Expand Down

0 comments on commit a588a7e

Please sign in to comment.