114 lines
4.8 KiB
XML
114 lines
4.8 KiB
XML
<t t-name="stock.label_transfer_template_view.trimada">
|
|
<t t-call="web.basic_layout">
|
|
<t t-foreach="docs" t-as="picking">
|
|
<t t-foreach="picking.move_lines" t-as="move">
|
|
<style>
|
|
.label {
|
|
font-family: arial;
|
|
}
|
|
.box {
|
|
margin: 0mm 0 2mm 0;
|
|
}
|
|
.box1 {
|
|
margin: 9mm 0 2mm 0;
|
|
}
|
|
.box2 {
|
|
margin: 7mm 0 2mm 0;
|
|
}
|
|
.box3 {
|
|
margin: 2mm 0 2mm 0;
|
|
}
|
|
.padding {
|
|
padding-bottom: 3mm;
|
|
}
|
|
.title {
|
|
font-size: 13mm;
|
|
margin: 3mm 3mm 0 3mm;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
border-bottom: solid 1px;
|
|
line-height: 1;
|
|
}
|
|
.frame {
|
|
border-bottom: solid 1px;
|
|
margin: 0 3mm 0 3mm;
|
|
}
|
|
.description {
|
|
font-size: 7mm;
|
|
height: 23mm;
|
|
width: 98%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
text-align: center;
|
|
padding: 10px;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
.delivery {
|
|
font-size: 6mm;
|
|
margin: 3mm 3mm 0 3mm;
|
|
text-align: left;
|
|
border-bottom: solid 1px;
|
|
line-height: 1;
|
|
height: 35mm;
|
|
}
|
|
.comment {
|
|
font-size: 5mm;
|
|
text-align: center;
|
|
height: 8mm;
|
|
line-height: 10mm;
|
|
}
|
|
.col-6 {
|
|
padding-right: 0;
|
|
padding-left: 0;
|
|
}
|
|
</style>
|
|
<div class="page">
|
|
<div class="label">
|
|
<div class="row title">
|
|
<div class="col-6 box2">
|
|
<span t-esc="move.product_id.default_code"/>
|
|
</div>
|
|
<div t-if="move.product_id.barcode" class="col-6 box2 text-right">
|
|
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', move.product_id.barcode, 250, 85)" alt="Barcode"/>
|
|
</div>
|
|
</div>
|
|
<div class="frame">
|
|
<div class="description">
|
|
<span t-esc="move.product_id.name"/>
|
|
</div>
|
|
<div class="description">
|
|
<span t-esc="move.product_id.type_description"/>
|
|
</div>
|
|
</div>
|
|
<div class="row delivery">
|
|
<div class="col-6 box">
|
|
<div class="padding">
|
|
<span t-esc="move.date" t-options="{'widget': 'date'}"/>
|
|
</div>
|
|
<div class="padding">
|
|
<span t-esc="move.origin"/>
|
|
</div>
|
|
</div>
|
|
<div class="col-6 box3">
|
|
<div t-if="move.product_id.feeder_id" class="text-right">
|
|
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s&quiet=0' % ('Code128', move.product_id.feeder_id, 250, 80)" alt="Barcode"/>
|
|
<br/>
|
|
</div>
|
|
<div class="text-center">
|
|
<span class="text-center" t-esc="move.product_id.feeder_id"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="comment">
|
|
<span>Trimada AG, CH-5610 Wohlen – www.trimada.ch</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<p style="page-break-before:always;"/>
|
|
</t>
|
|
</t>
|
|
</t>
|
|
</t>
|