19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -21,12 +21,8 @@
<div class="o_label_extra_data">
<t t-out="extra_html"/>
</div>
<t t-if="product.is_product_variant">
<strong class="o_label_price" t-field="product.lst_price" t-options="{'widget': 'monetary', 'label_price': True}"/>
</t>
<t t-else="">
<strong class="o_label_price" t-field="product.list_price" t-options="{'widget': 'monetary', 'label_price': True}"/>
</t>
<strong class="o_label_price" t-out="pricelist._get_product_price(product, 1, currency=pricelist.currency_id or product.currency_id)"
t-options="{'widget': 'monetary', 'display_currency': pricelist.currency_id or product.currency_id, 'label_price': True}"/>
</div>
<div class="o_label_clear"></div>
</div>
@ -43,12 +39,8 @@
<strong t-field="product.display_name"/>
</div>
<div class="text-end" style="padding-top:0;padding-bottom:0">
<t t-if="product.is_product_variant">
<strong class="o_label_price_medium" t-field="product.lst_price" t-options="{'widget': 'monetary', 'label_price': True}"/>
</t>
<t t-else="">
<strong class="o_label_price_medium" t-field="product.list_price" t-options="{'widget': 'monetary', 'label_price': True}"/>
</t>
<strong class="o_label_price_medium" t-out="pricelist._get_product_price(product, 1, currency=pricelist.currency_id or product.currency_id)"
t-options="{'widget': 'monetary', 'display_currency': pricelist.currency_id or product.currency_id, 'label_price': True}"/>
</div>
<div class= "text-center o_label_small_barcode">
<span class="text-nowrap" t-field="product.default_code"/>
@ -69,24 +61,34 @@
<div class="o_label_name">
<strong t-field="product.display_name"/>
</div>
<t t-if="price_included">
<div class="o_label_left_column">
<span class="text-nowrap" t-field="product.default_code"/>
</div>
<div class="o_label_price_medium text-end">
<t t-if="product.is_product_variant">
<strong t-field="product.lst_price" t-options="{'widget': 'monetary', 'label_price': True}"/>
</t>
<t t-else="">
<strong t-field="product.list_price" t-options="{'widget': 'monetary', 'label_price': True}"/>
</t>
</div>
</t>
<t t-else="">
<div class="o_label_left_column o_label_full_with">
<span class="text-nowrap" t-field="product.default_code"/>
</div>
</t>
<div class="o_label_left_column">
<span class="text-nowrap" t-field="product.default_code"/>
</div>
<div class="o_label_price_medium text-end">
<strong t-out="pricelist._get_product_price(product, 1, currency=pricelist.currency_id or product.currency_id)"
t-options="{'widget': 'monetary', 'display_currency': pricelist.currency_id or product.currency_id, 'label_price': True}"/>
</div>
<div class= "text-center o_label_small_barcode">
<t t-if="barcode">
<div t-out="barcode" style="padding:0" t-options="{'widget': 'barcode', 'symbology': 'auto', 'img_style': barcode_size}"/>
<span class="text-center" t-out="barcode"/>
</t>
</div>
</div>
</td>
</template>
<template id="report_simple_label4x12_no_price">
<t t-set="barcode_size" t-value="'width:33mm;height:4mm'"/>
<t t-set="table_style" t-value="'width:43mm;height:19mm;' + table_style"/>
<td t-att-style="make_invisible and 'visibility:hidden;'" >
<div class="o_label_full o_label_small_text" t-att-style="table_style">
<div class="o_label_name">
<strong t-field="product.display_name"/>
</div>
<div class="o_label_left_column o_label_full_with">
<span class="text-nowrap" t-field="product.default_code"/>
</div>
<div class= "text-center o_label_small_barcode">
<t t-if="barcode">
<div t-out="barcode" style="padding:0" t-options="{'widget': 'barcode', 'symbology': 'auto', 'img_style': barcode_size}"/>
@ -114,18 +116,11 @@
<span t-else="" t-field="product.name"/>
</div>
<div class="o_label_left_column">
<small class="text-nowrap" t-field="product.default_code"/>
<small class="text-nowrap" t-field="product.default_code" style="font-size: 0.875em;"/>
</div>
<div class="text-end" style="padding: 0 4px;">
<t t-if="product.is_product_variant">
<strong class="o_label_price_small" t-field="product.lst_price" t-options="{'widget': 'monetary', 'label_price': True}"/>
</t>
<t t-else="">
<strong class="o_label_price_small" t-field="product.list_price" t-options="{'widget': 'monetary', 'label_price': True}"/>
</t>
<div t-if="False" class="o_label_extra_data">
<t t-out="extra_html"/>
</div>
<strong class="o_label_price_small" t-out="pricelist._get_product_price(product, 1, currency=pricelist.currency_id or product.currency_id)"
t-options="{'widget': 'monetary', 'display_currency': pricelist.currency_id or product.currency_id, 'label_price': True}"/>
</div>
</div>
</div>
@ -136,15 +131,15 @@
<t t-if="columns and rows">
<t t-if="columns == 2 and rows == 7">
<t t-set="padding_page" t-value="'padding: 14mm 3mm'"/>
<t t-set="report_to_call" t-value="'product.report_simple_label2x7'"/>
<t t-set="report_to_call" t-value="'2x7'"/>
</t>
<t t-if="columns == 4 and rows == 7">
<t t-set="padding_page" t-value="'padding: 14mm 3mm'"/>
<t t-set="report_to_call" t-value="'product.report_simple_label4x7'"/>
<t t-set="report_to_call" t-value="'4x7'"/>
</t>
<t t-if="columns == 4 and rows == 12">
<t t-set="padding_page" t-value="'padding: 20mm 8mm'"/>
<t t-set="report_to_call" t-value="'product.report_simple_label4x12'"/>
<t t-set="report_to_call" t-value="'4x12'"/>
</t>
<t t-foreach="range(page_numbers)" t-as="page">
<div class="o_label_sheet" t-att-style="padding_page">
@ -172,7 +167,21 @@
<t t-set="make_invisible" t-value="True"/>
</t>
<t t-set="table_style" t-value="'border: 1px solid %s;' % (product.env.user.company_id.primary_color or 'black')"/>
<t t-call="{{report_to_call}}"/>
<!-- IMPORTANT: explictly call templates in place of {{template}} otherwise studio won't load report correctly -->
<t t-if="report_to_call == '2x7'">
<t t-call="product.report_simple_label2x7"/>
</t>
<t t-elif="report_to_call == '4x7'">
<t t-call="product.report_simple_label4x7"/>
</t>
<t t-elif="report_to_call == '4x12'">
<t t-if="price_included">
<t t-call="product.report_simple_label4x12"/>
</t>
<t t-else="">
<t t-call="product.report_simple_label4x12_no_price"/>
</t>
</t>
</t>
</tr>
</t>