website_search_products: traducida tabla castellano, añadida regla para permitir consultar productos no publicados en el portal. Añadida cabecera

This commit is contained in:
Luis 2023-01-16 12:12:50 +01:00
parent 2257656412
commit 03d72f473d
4 changed files with 23 additions and 8 deletions

View file

@ -15,6 +15,7 @@
], ],
'data': [ 'data': [
"data/menu.xml", "data/menu.xml",
"data/ir_rule.xml",
"views/web_templates.xml" "views/web_templates.xml"
], ],
'demo': [ 'demo': [

View file

@ -6,8 +6,8 @@ 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"
"POT-Creation-Date: 2023-01-12 17:25+0000\n" "POT-Creation-Date: 2023-01-16 10:53+0000\n"
"PO-Revision-Date: 2023-01-12 18:26+0100\n" "PO-Revision-Date: 2023-01-16 12:07+0100\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -27,6 +27,11 @@ msgstr "Categoría"
msgid "Displayed products" msgid "Displayed products"
msgstr "Productos mostrados" msgstr "Productos mostrados"
#. module: website_search_products
#: model_terms:ir.ui.view,arch_db:website_search_products.web_list_products
msgid "In this table you can consult all the products available in the store"
msgstr "En esta tabla puedes consultar los productos disponibles en tienda"
#. module: website_search_products #. module: website_search_products
#: model_terms:ir.ui.view,arch_db:website_search_products.web_list_products #: model_terms:ir.ui.view,arch_db:website_search_products.web_list_products
msgid "Name" msgid "Name"

View file

@ -6,8 +6,8 @@ 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"
"POT-Creation-Date: 2023-01-12 17:24+0000\n" "POT-Creation-Date: 2023-01-16 10:53+0000\n"
"PO-Revision-Date: 2023-01-12 17:24+0000\n" "PO-Revision-Date: 2023-01-16 10:53+0000\n"
"Last-Translator: <>\n" "Last-Translator: <>\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -25,6 +25,11 @@ msgstr ""
msgid "Displayed products" msgid "Displayed products"
msgstr "" msgstr ""
#. module: website_search_products
#: model_terms:ir.ui.view,arch_db:website_search_products.web_list_products
msgid "In this table you can consult all the products available in the store"
msgstr ""
#. module: website_search_products #. module: website_search_products
#: model_terms:ir.ui.view,arch_db:website_search_products.web_list_products #: model_terms:ir.ui.view,arch_db:website_search_products.web_list_products
msgid "Name" msgid "Name"

View file

@ -18,8 +18,9 @@
Products not found Products not found
</div> </div>
</t> </t>
<div class="col-md-12" style="text-align: center;"><h2>In this table you can consult all the products available in the store</h2></div>
<div class="col-md-12" style="margin-top: 50px;"> <div class="col-md-12" style="margin-top: 50px;">
<table id="productTable" class="table table-stripped" > <table id="productTable" class="table stripe" >
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>Name</th>
@ -45,12 +46,15 @@
</div> </div>
</div> </div>
</div> </div>
<script src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js" /> <script src="https://cdn.datatables.net/1.13.1/js/jquery.dataTables.min.js" />
<link rel="stylesheet" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css" /> <link rel="stylesheet" href="https://cdn.datatables.net/1.13.1/css/jquery.dataTables.min.css" />
<script> <script>
$('#productTable').DataTable({ $('#productTable').DataTable({
"pageLength": 100, "pageLength": 100,
"order": [[1, "asc"], [0, "asc"], [2, "desc"]] "order": [[1, "asc"], [0, "asc"], [2, "desc"]],
"language": {
"url": "https://cdn.datatables.net/plug-ins/1.13.1/i18n/es-ES.json"
}
}); });
console.log("table init"); console.log("table init");
</script> </script>