#84 product_print_category_supermarket: option to show product ref

This commit is contained in:
Luis 2025-02-24 17:59:53 +01:00
parent b2ab92f103
commit d33ff7d772
4 changed files with 8 additions and 6 deletions

View file

@ -17,6 +17,7 @@
],
"data": [
"views/report_pricetag_normal.xml",
"views/product_print_category.xml",
"views/product_template_tag.xml",
"views/product_template.xml",
"views/res_config.xml",

View file

@ -1,3 +1,4 @@
from . import product_print_category
from . import product_template
from . import product_template_tag
from . import res_config

View file

@ -21,10 +21,10 @@
}
.product_code {
font-size: 0.8em;
font-size: 0.7em;
position: absolute;
margin-top: 1.2cm;
margin-left: 5.3cm;
margin-top: 0.8cm;
margin-left: 4.8cm;
text-align: left;
}
@ -32,7 +32,7 @@
font-size: 0.7em;
position: absolute;
margin-top: 1.2cm;
right: 0.3cm;
right: 0.1cm;
text-align: right;
}

View file

@ -8,11 +8,11 @@
<div class="product_name" >
<span t-field="product.name"/>
</div>
<!-- <t t-if="product.default_code">
<t t-if="product.default_code and category_data['print_category'].show_ref">
<div class="product_code" >
ref.<span t-field="product.default_code"/>
</div>
</t> -->
</t>
<t t-if="product.origin">
<div class="product_state" >
<span t-field="product.origin"/>