product_print_category_supermarket: option to show barcode in labels

This commit is contained in:
Luis 2025-03-11 17:25:26 +01:00
parent d2a08d6238
commit fb8b2fd9e0
2 changed files with 13 additions and 0 deletions

View file

@ -93,3 +93,11 @@
text-align: left;
padding-right: 0.2cm;
}
.product_barcode{
font-size: 0.5em;
position: absolute;
bottom: 0.5mm;
left: 0.5mm;
text-align: left;
}

View file

@ -83,6 +83,11 @@
t-options='{"widget": "float", "precision": 2}' /> €/Kg.
</t>
</div>
<t t-if="product.barcode and category_data['print_category'].show_barcode">
<div class="product_barcode" >
<span t-field="product.barcode"/>
</div>
</t>
</div>
</t>
</template>