[MIG] product_state: Migration to 16.0

This commit is contained in:
santi 2024-08-28 18:37:53 +00:00
parent 663479e4a2
commit 459d99a7c3
6 changed files with 5 additions and 96 deletions

View file

@ -1,49 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * pos_default_empty_image
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2020-10-26 11:08+0000\n"
"Last-Translator: Daniel Martinez Vila <daniel.martinez@qubiq.es>\n"
"Language-Team: none\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 3.10\n"
#. module: pos_default_empty_image
#: model:ir.model.fields,field_description:pos_default_empty_image.field_pos_config__iface_fixed_font_size
#: model_terms:ir.ui.view,arch_db:pos_default_empty_image.pos_config_view_form
msgid "Fixed Font Size"
msgstr "Tamaño de fuente fijo"
#. module: pos_default_empty_image
#: model:ir.model.fields,help:pos_default_empty_image.field_pos_config__iface_fixed_font_size
#: model_terms:ir.ui.view,arch_db:pos_default_empty_image.pos_config_view_form
msgid ""
"Font size of the product name, when it has no image. Set '0' will set "
"adaptative font-size, depending on the length of the name."
msgstr ""
"Tamaño de fuente del nombre del producto, cuando no tiene imagen. Establecer "
"'0' establecerá un tamaño de fuente adaptativo, dependiendo de la longitud "
"del nombre."
#. module: pos_default_empty_image
#: model:ir.model.fields,field_description:pos_default_empty_image.field_product_product__has_image
msgid "Has Image"
msgstr "Tiene imagen"
#. module: pos_default_empty_image
#: model:ir.model,name:pos_default_empty_image.model_pos_config
msgid "Point of Sale Configuration"
msgstr "Configuración del punto de venta"
#. module: pos_default_empty_image
#: model:ir.model,name:pos_default_empty_image.model_product_product
msgid "Product"
msgstr "Producto"

View file

@ -1,42 +0,0 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * product_library
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 12.0\n"
"Report-Msgid-Bugs-To: \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: pos_default_empty_image
#: model:ir.model.fields,field_description:pos_default_empty_image.field_pos_config__iface_fixed_font_size
#: model_terms:ir.ui.view,arch_db:pos_default_empty_image.pos_config_view_form
msgid "Fixed Font Size"
msgstr ""
#. module: pos_default_empty_image
#: model:ir.model.fields,help:pos_default_empty_image.field_pos_config__iface_fixed_font_size
#: model_terms:ir.ui.view,arch_db:pos_default_empty_image.pos_config_view_form
msgid "Font size of the product name, when it has no image. Set '0' will set adaptative font-size, depending on the length of the name."
msgstr ""
#. module: pos_default_empty_image
#: model:ir.model.fields,field_description:pos_default_empty_image.field_product_product__has_image
msgid "Has Image"
msgstr ""
#. module: pos_default_empty_image
#: model:ir.model,name:pos_default_empty_image.model_pos_config
msgid "Point of Sale Configuration"
msgstr ""
#. module: pos_default_empty_image
#: model:ir.model,name:pos_default_empty_image.model_product_product
msgid "Product"
msgstr ""

View file

@ -1,5 +1,5 @@
from . import pos_config from . import pos_config
from . import product_template from . import product_template
from . import product_product #from . import product_product

View file

@ -7,7 +7,7 @@ odoo.define('product_library.product_library', function (require) {
//var gui = require('point_of_sale.gui'); //var gui = require('point_of_sale.gui');
//var _t = core._t; //var _t = core._t;
models.load_fields("product.product", ['has_image']); //models.load_fields("product.product", ['has_image']);
/* ******************************************************** /* ********************************************************
Overload models.PosModel Overload models.PosModel

View file

@ -25,7 +25,7 @@
<!-- </t> --> <!-- </t> -->
</t> </t>
</t> </t>
<!--
<t t-name="ProductNoImage"> <t t-name="ProductNoImage">
<article class='product' t-att-data-product-id="product.id" tabindex="0" t-attf-aria-labelledby="article_product_#{product.id}"> <article class='product' t-att-data-product-id="product.id" tabindex="0" t-attf-aria-labelledby="article_product_#{product.id}">
<t t-set="name_length" t-value="product.display_name.length" /> <t t-set="name_length" t-value="product.display_name.length" />
@ -63,7 +63,7 @@
</div> </div>
</article> </article>
</t> </t>
-->
</templates> </templates>

View file

@ -5,7 +5,7 @@
<xpath expr="." position="inside"> <xpath expr="." position="inside">
<script type="text/javascript" src="/product_library/static/src/js/models.js"></script> <script type="text/javascript" src="/product_library/static/src/js/models.js"></script>
<script type="text/javascript" src="/product_library/static/src/js/db.js"/> <script type="text/javascript" src="/product_library/static/src/js/db.js"/>
<script type="text/javascript" src="/product_library/static/src/js/widgets.js"></script> <!-- <script type="text/javascript" src="/product_library/static/src/js/widgets.js"></script> -->
</xpath> </xpath>
<xpath expr="//link[@id='pos-stylesheet']" position="after"> <xpath expr="//link[@id='pos-stylesheet']" position="after">
<link <link