Cambio sométicos en el PoS: Añade campos subtítutlo y autor a order
line, añade campo autor a product en la lista de productos, reordena campos en info product, no imprime nada si no existe el campo a imprimir.
This commit is contained in:
parent
78d5fca7de
commit
78a10bc5cd
1 changed files with 40 additions and 12 deletions
|
@ -6,18 +6,30 @@
|
|||
t-inherit-mode="extension"
|
||||
owl="1"
|
||||
>
|
||||
<xpath expr="//div[hasclass('product-content')]" position="inside">
|
||||
<div class="flex">
|
||||
<xpath expr="//span[hasclass('price-tag')]" position="before">
|
||||
<t t-if="props.product.autor">
|
||||
<t t-out="props.product.autor" class="product-name"/>
|
||||
<br/>
|
||||
<span><b><t t-esc="props.product.formato"/></b></span>
|
||||
</div>
|
||||
</t>
|
||||
<t t-if="props.product.formato" class="price-tag">
|
||||
<t t-esc="props.product.formato"/>
|
||||
</t>
|
||||
</xpath>
|
||||
</t>
|
||||
<t t-inherit="point_of_sale.Orderline" t-inherit-mode="extension">
|
||||
<xpath expr="//span[hasclass('product-name')]" position="inside">
|
||||
<span>
|
||||
<t t-if="props.line.get_product().subtitle">
|
||||
. <t t-out="props.line.get_product().subtitle" />
|
||||
</t>
|
||||
</span>
|
||||
<br/>
|
||||
Formato: <t t-out="props.line.get_product().formato" />
|
||||
<span t-if="props.line.get_product().autor">
|
||||
<t t-out="props.line.get_product().autor" />
|
||||
</span>
|
||||
<br/>
|
||||
<span t-if="props.line.get_product().formato">
|
||||
<t t-out="props.line.get_product().formato" />
|
||||
</span>
|
||||
</xpath>
|
||||
</t>
|
||||
|
@ -28,38 +40,54 @@
|
|||
owl="1"
|
||||
>
|
||||
<xpath expr="//div[hasclass('section-product-info-title')]" position="after">
|
||||
<div class="section-product-info">
|
||||
<br/>
|
||||
<div class="section-title">
|
||||
<span>Detalles</span>
|
||||
<div class="section-title-line"></div>
|
||||
</div>
|
||||
<div class="section-inventory-body">
|
||||
<table class="mobile-table">
|
||||
<t t-if="props.product.subtitle">
|
||||
<tr>
|
||||
<td>Subtitulo:</td>
|
||||
<td><t t-out="props.product.subtitle" /></td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="props.product.autor">
|
||||
<tr>
|
||||
<td>Autor:</td>
|
||||
<td><t t-out="props.product.autor" /></td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="props.product.formato">
|
||||
<tr>
|
||||
<td>Formato:</td>
|
||||
<td><t t-out="props.product.formato" /></td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="props.product.editorial">
|
||||
<tr>
|
||||
<td>Editorial:</td>
|
||||
<td><t t-out="props.product.editorial" /></td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="props.product.fecha_entrada">
|
||||
<tr>
|
||||
<td>Entrada:</td>
|
||||
<td><t t-out="props.product.fecha_entrada" /></td>
|
||||
</tr>
|
||||
</t>
|
||||
<t t-if="props.product.genero">
|
||||
<tr>
|
||||
<td>Género:</td>
|
||||
<td><t t-out="props.product.genero" /></td>
|
||||
</tr>
|
||||
<!-- Si se quita el campo description en la busqueda, no se muestra aquí
|
||||
</t>
|
||||
<t t-if="props.product.description">
|
||||
<tr>
|
||||
<td>Descripcion:</td>
|
||||
<td>Descripción:</td>
|
||||
<td><t t-out="props.product.description" /></td>
|
||||
</tr> -->
|
||||
</tr>
|
||||
</t>
|
||||
</div>
|
||||
</xpath>
|
||||
</t>
|
||||
|
|
Loading…
Add table
Reference in a new issue