AVecinal/avecinal#57 product_print_category_supermarket: fix shelf labels
This commit is contained in:
parent
66bcb65b28
commit
aaeb9f31cd
3 changed files with 100 additions and 100 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
.pricetag_container{
|
.pricetag_container{
|
||||||
height: 3.7cm;
|
height: 3.1cm;
|
||||||
width: 7.1cm;
|
width: 6.3cm;
|
||||||
border: 2px solid black;
|
border: 2px solid black;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin: 10;
|
margin: 10;
|
||||||
|
|
@ -11,12 +11,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.product_name {
|
.product_name {
|
||||||
font-size: 1em;
|
font-size: 0.9em;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 1mm;
|
margin-top: 1mm;
|
||||||
margin-left: 1mm;
|
margin-left: 1mm;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.product_code {
|
.product_code {
|
||||||
|
|
@ -28,9 +29,9 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.product_state {
|
.product_state {
|
||||||
font-size: 0.8em;
|
font-size: 0.7em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 1.7cm;
|
margin-top: 1.2cm;
|
||||||
right: 0.3cm;
|
right: 0.3cm;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
@ -38,13 +39,13 @@
|
||||||
.product_labels {
|
.product_labels {
|
||||||
vertical-align:bottom;
|
vertical-align:bottom;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 2cm;
|
margin-top: 1.2cm;
|
||||||
margin-left: 0.1cm;
|
margin-left: 0.1cm;
|
||||||
width: 35%;
|
width: 35%;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 1cm;
|
height: 0.9cm;
|
||||||
width: 1cm;
|
width: 0.9cm;
|
||||||
float: left;
|
float: left;
|
||||||
padding: 0.5mm
|
padding: 0.5mm
|
||||||
}
|
}
|
||||||
|
|
@ -53,10 +54,10 @@
|
||||||
.product_member_price {
|
.product_member_price {
|
||||||
font-size: 1.1em;
|
font-size: 1.1em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 50%;
|
width: 48%;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
margin-top: 2.2cm;
|
margin-top: 1.7cm;
|
||||||
margin-left: 3cm;
|
margin-left: 3.3cm;
|
||||||
padding-right: 0.2cm;
|
padding-right: 0.2cm;
|
||||||
background-color: green;
|
background-color: green;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
@ -67,8 +68,8 @@
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
margin-top: 2.4cm;
|
margin-top: 2cm;
|
||||||
margin-left: 0.8cm;
|
margin-left: 1.9cm;
|
||||||
padding-right: 0.2cm;
|
padding-right: 0.2cm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,7 +77,7 @@
|
||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
margin-top: 2.9cm;
|
margin-top: 2.4cm;
|
||||||
margin-left: 3cm;
|
margin-left: 3cm;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 0.2cm;
|
padding-right: 0.2cm;
|
||||||
|
|
@ -87,8 +88,8 @@
|
||||||
font-size: 0.6em;
|
font-size: 0.6em;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 50%;
|
width: 50%;
|
||||||
margin-top: 3cm;
|
margin-top: 2.55cm;
|
||||||
margin-left: 0.8cm;
|
margin-left: 1.9cm;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding-right: 0.2cm;
|
padding-right: 0.2cm;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="tag_ids" position="after">
|
<field name="tag_ids" position="after">
|
||||||
<field name="origin" />
|
<field name="origin" />
|
||||||
|
<field name="expiration_date" />
|
||||||
<field name="ingredients" />
|
<field name="ingredients" />
|
||||||
<field name="code_balance" />
|
<field name="code_balance" />
|
||||||
</field>
|
</field>
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
<odoo>
|
<odoo>
|
||||||
|
|
||||||
<template id="report_product_label_shelf" >
|
<template id="report_product_label_shelf" >
|
||||||
<t t-name="report_product_label_shelf">
|
|
||||||
<t t-call="web.basic_layout">
|
<t t-call="web.basic_layout">
|
||||||
<t t-foreach="category_data['lines']" t-as="line">
|
<t t-foreach="category_data['lines']" t-as="line">
|
||||||
<t t-set="product" t-value="line.product_id.product_tmpl_id" />
|
<t t-set="product" t-value="line.product_id.product_tmpl_id" />
|
||||||
|
|
@ -88,7 +87,6 @@
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
</t>
|
||||||
</t>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</odoo>
|
</odoo>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue