Muestra el campo formato en la ficha de producto y en las línea de la orden
This commit is contained in:
parent
0e2919d1eb
commit
2a4ffee914
5 changed files with 80 additions and 1 deletions
29
product_library/static/src/xml/pos.xml
Normal file
29
product_library/static/src/xml/pos.xml
Normal file
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--Copyright 2021 Criptomart <https://criptomart.net> -->
|
||||
<templates id="template" xml:space="preserve">
|
||||
<t t-extend="Product">
|
||||
<t t-jquery=".product-name" t-operation="after">
|
||||
<!-- <t t-if="widget.pos.config.show_format && product.type == 'product'"> -->
|
||||
<span t-attf-class="format" >
|
||||
<t t-esc="product.formato" />
|
||||
</span>
|
||||
</t>
|
||||
<!-- </t> -->
|
||||
</t>
|
||||
|
||||
<t t-extend="Orderline">
|
||||
<!-- <t t-jquery=".product-name" t-operation="after">
|
||||
<span t-attf-class="format" >
|
||||
<t t-esc="product.formato" />
|
||||
</span>
|
||||
</t> -->
|
||||
<t t-jquery=".product-name" t-operation="after">
|
||||
<!-- <t t-if="widget.pos.config.show_format && line.get_product().type == 'product'" > -->
|
||||
<div t-attf-class="format" >
|
||||
<t t-esc="line.get_product().formato" />
|
||||
</div>
|
||||
<!-- </t> -->
|
||||
</t>
|
||||
</t>
|
||||
|
||||
</templates>
|
Loading…
Add table
Add a link
Reference in a new issue