#84 product_print_category_supermarket: fix duplicate page
This commit is contained in:
parent
3ba962653d
commit
b2ab92f103
1 changed files with 81 additions and 83 deletions
|
|
@ -2,90 +2,88 @@
|
|||
<odoo>
|
||||
|
||||
<template id="report_product_label_shelf" >
|
||||
<t t-call="web.basic_layout">
|
||||
<t t-foreach="category_data['lines']" t-as="line">
|
||||
<t t-set="product" t-value="line.product_id.product_tmpl_id" />
|
||||
<div class="pricetag_container" >
|
||||
<div class="product_name" >
|
||||
<span t-field="product.name"/>
|
||||
</div>
|
||||
<!-- <t t-if="product.default_code">
|
||||
<div class="product_code" >
|
||||
ref.<span t-field="product.default_code"/>
|
||||
</div>
|
||||
</t> -->
|
||||
<t t-if="product.origin">
|
||||
<div class="product_state" >
|
||||
<span t-field="product.origin"/>
|
||||
</div>
|
||||
</t>
|
||||
<div class="product_labels" >
|
||||
<t t-foreach="product.tag_ids" t-as="label">
|
||||
<img t-attf-src="data:image/*;base64,{{label.image}}" t-att-alt="label.name"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="product_member_price" >
|
||||
<t t-set="members_price" t-value="product.get_price_member()" />
|
||||
<span>PVS</span>
|
||||
<strong><span
|
||||
t-out="members_price"
|
||||
t-options='{"widget": "float", "precision": 2}'
|
||||
/> €</strong>
|
||||
</div>
|
||||
<div class="product_price_per_uom_member floating_box">
|
||||
<t t-if="product.volume">
|
||||
<t
|
||||
t-set="price_uom"
|
||||
t-value="round(members_price / (product.volume), 2)"
|
||||
/>
|
||||
<span
|
||||
t-out="price_uom"
|
||||
t-options='{"widget": "float", "precision": 2}' /> €/L.
|
||||
</t>
|
||||
<t t-if="product.net_weight">
|
||||
<t
|
||||
t-set="price_uom"
|
||||
t-value="round(members_price / (product.net_weight), 2)"
|
||||
/>
|
||||
<span
|
||||
t-out="price_uom"
|
||||
t-options='{"widget": "float", "precision": 2}' /> €/Kg.
|
||||
</t>
|
||||
</div>
|
||||
<div class="product_public_price" >
|
||||
<t
|
||||
t-set="public_price"
|
||||
t-value="round(product.get_price_public(), 2)"
|
||||
/>
|
||||
<span>PVP</span>
|
||||
<strong><span
|
||||
t-out="public_price" t-options='{"widget": "float", "precision": 2}'
|
||||
/>
|
||||
€</strong>
|
||||
</div>
|
||||
<!-- Price per Kg or L -->
|
||||
<div class="product_price_per_uom_public floating_box">
|
||||
<t t-if="product.volume">
|
||||
<t
|
||||
t-set="price_uom"
|
||||
t-value="round(public_price / (product.volume), 2)"
|
||||
/>
|
||||
<span
|
||||
t-out="price_uom"
|
||||
t-options='{"widget": "float", "precision": 2}' /> €/L.
|
||||
</t>
|
||||
<t t-if="product.net_weight">
|
||||
<t
|
||||
t-set="price_uom"
|
||||
t-value="round(public_price / (product.net_weight), 2)"
|
||||
/>
|
||||
<span
|
||||
t-out="price_uom"
|
||||
t-options='{"widget": "float", "precision": 2}' /> €/Kg.
|
||||
</t>
|
||||
</div>
|
||||
<t t-foreach="category_data['lines']" t-as="line">
|
||||
<t t-set="product" t-value="line.product_id.product_tmpl_id" />
|
||||
<div class="pricetag_container" >
|
||||
<div class="product_name" >
|
||||
<span t-field="product.name"/>
|
||||
</div>
|
||||
</t>
|
||||
<!-- <t t-if="product.default_code">
|
||||
<div class="product_code" >
|
||||
ref.<span t-field="product.default_code"/>
|
||||
</div>
|
||||
</t> -->
|
||||
<t t-if="product.origin">
|
||||
<div class="product_state" >
|
||||
<span t-field="product.origin"/>
|
||||
</div>
|
||||
</t>
|
||||
<div class="product_labels" >
|
||||
<t t-foreach="product.tag_ids" t-as="label">
|
||||
<img t-attf-src="data:image/*;base64,{{label.image}}" t-att-alt="label.name"/>
|
||||
</t>
|
||||
</div>
|
||||
<div class="product_member_price" >
|
||||
<t t-set="members_price" t-value="product.get_price_member()" />
|
||||
<span>PVS</span>
|
||||
<strong><span
|
||||
t-out="members_price"
|
||||
t-options='{"widget": "float", "precision": 2}'
|
||||
/> €</strong>
|
||||
</div>
|
||||
<div class="product_price_per_uom_member floating_box">
|
||||
<t t-if="product.volume">
|
||||
<t
|
||||
t-set="price_uom"
|
||||
t-value="round(members_price / (product.volume), 2)"
|
||||
/>
|
||||
<span
|
||||
t-out="price_uom"
|
||||
t-options='{"widget": "float", "precision": 2}' /> €/L.
|
||||
</t>
|
||||
<t t-if="product.net_weight">
|
||||
<t
|
||||
t-set="price_uom"
|
||||
t-value="round(members_price / (product.net_weight), 2)"
|
||||
/>
|
||||
<span
|
||||
t-out="price_uom"
|
||||
t-options='{"widget": "float", "precision": 2}' /> €/Kg.
|
||||
</t>
|
||||
</div>
|
||||
<div class="product_public_price" >
|
||||
<t
|
||||
t-set="public_price"
|
||||
t-value="round(product.get_price_public(), 2)"
|
||||
/>
|
||||
<span>PVP</span>
|
||||
<strong><span
|
||||
t-out="public_price" t-options='{"widget": "float", "precision": 2}'
|
||||
/>
|
||||
€</strong>
|
||||
</div>
|
||||
<!-- Price per Kg or L -->
|
||||
<div class="product_price_per_uom_public floating_box">
|
||||
<t t-if="product.volume">
|
||||
<t
|
||||
t-set="price_uom"
|
||||
t-value="round(public_price / (product.volume), 2)"
|
||||
/>
|
||||
<span
|
||||
t-out="price_uom"
|
||||
t-options='{"widget": "float", "precision": 2}' /> €/L.
|
||||
</t>
|
||||
<t t-if="product.net_weight">
|
||||
<t
|
||||
t-set="price_uom"
|
||||
t-value="round(public_price / (product.net_weight), 2)"
|
||||
/>
|
||||
<span
|
||||
t-out="price_uom"
|
||||
t-options='{"widget": "float", "precision": 2}' /> €/Kg.
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
</t>
|
||||
</template>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue