[FIX] product_harmonized_system: Change web_ribbon text to title to make it translatable

This commit is contained in:
Víctor Martínez
2024-01-29 10:41:43 +01:00
parent 356b34d589
commit 498f81be50
3 changed files with 14 additions and 12 deletions

View File

@@ -6,15 +6,16 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 12.0\n" "Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2023-07-22 21:09+0000\n" "POT-Creation-Date: 2024-01-29 09:43+0000\n"
"PO-Revision-Date: 2024-01-29 10:43+0100\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n" "Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
"Language-Team: none\n" "Language-Team: none\n"
"Language: es\n" "Language: es\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n" "Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.17\n" "X-Generator: Poedit 3.0.1\n"
#. module: product_harmonized_system #. module: product_harmonized_system
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form #: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form
@@ -32,6 +33,7 @@ msgid "Active"
msgstr "Activo" msgstr "Activo"
#. module: product_harmonized_system #. module: product_harmonized_system
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_search #: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_search
msgid "Archived" msgid "Archived"
msgstr "Archivado" msgstr "Archivado"
@@ -241,6 +243,3 @@ msgstr "Unidades de almacenamiento"
#: model:ir.model.constraint,message:product_harmonized_system.constraint_hs_code_local_code_company_uniq #: model:ir.model.constraint,message:product_harmonized_system.constraint_hs_code_local_code_company_uniq
msgid "This code already exists for this company !" msgid "This code already exists for this company !"
msgstr "Este código ya existe para esta compañía !" msgstr "Este código ya existe para esta compañía !"
#~ msgid "Search H.S. Codes"
#~ msgstr "Buscar códigos H.S"

View File

@@ -6,6 +6,8 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Odoo Server 15.0\n" "Project-Id-Version: Odoo Server 15.0\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-01-29 09:43+0000\n"
"PO-Revision-Date: 2024-01-29 09:43+0000\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@@ -29,6 +31,7 @@ msgid "Active"
msgstr "" msgstr ""
#. module: product_harmonized_system #. module: product_harmonized_system
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_form
#: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_search #: model_terms:ir.ui.view,arch_db:product_harmonized_system.hs_code_view_search
msgid "Archived" msgid "Archived"
msgstr "" msgstr ""

View File

@@ -57,12 +57,6 @@
<form> <form>
<sheet> <sheet>
<field name="active" invisible="1" /> <field name="active" invisible="1" />
<widget
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<div class="oe_button_box" name="button_box"> <div class="oe_button_box" name="button_box">
<button <button
class="oe_stat_button" class="oe_stat_button"
@@ -91,6 +85,12 @@
</div> </div>
</button> </button>
</div> </div>
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<group name="main"> <group name="main">
<field name="local_code" /> <field name="local_code" />
<field name="hs_code" /> <field name="hs_code" />