2018-01-16 06:58:15 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2018-01-16 11:34:37 +01:00
|
|
|
<flectra>
|
2018-01-16 06:58:15 +01:00
|
|
|
<data>
|
|
|
|
<template id="report_package_barcode">
|
|
|
|
<t t-call="web.basic_layout">
|
|
|
|
<t t-foreach="docs" t-as="o">
|
|
|
|
<t>
|
|
|
|
<div class="page">
|
|
|
|
<div class="oe_structure"/>
|
|
|
|
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)"
|
|
|
|
style="width:300px;height:50px" class="pull-right mb16"/>
|
|
|
|
<h1 t-field="o.name" class="mt0 pull-left"/>
|
|
|
|
<div class="row o_packaging_type" t-if="o.packaging_id">
|
|
|
|
<div class="col-xs-12" style="font-weight:bold;">Package Type: <span t-field="o.packaging_id.name"/></div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<h2>Package Content</h2>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-8">
|
|
|
|
<table class="table table-condensed" style="border-bottom: 0px solid white !important;">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Product</th>
|
|
|
|
<th class="text-right">Quantity</th>
|
|
|
|
<th>Lot/Serial Number</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr t-foreach="o.quant_ids" t-as="l">
|
|
|
|
<td>
|
|
|
|
<span t-field="l.product_id.name"/>
|
|
|
|
</td>
|
|
|
|
<td class="text-right">
|
|
|
|
<span t-field="l.quantity"/>
|
|
|
|
<span groups="product.group_uom" t-field="l.product_id.uom_id.name"/>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<t t-if="l.lot_id"><span t-field="l.lot_id.name"/></t>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<template id="report_package_barcode_small">
|
|
|
|
<t t-call="web.basic_layout">
|
|
|
|
<t t-foreach="docs" t-as="o">
|
|
|
|
<t>
|
|
|
|
<div class="page">
|
|
|
|
<div class="oe_structure"/>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12 text-center">
|
|
|
|
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)" style="width:600px;height:100px"/>
|
|
|
|
<p t-field="o.name" style="font-size:20px;"></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row o_package_name">
|
|
|
|
<div class="col-xs-12" style="font-size:24px; font-weight:bold;">Package Reference: <span t-field="o.name"/></div>
|
|
|
|
</div>
|
|
|
|
<div class="row o_packaging_type" t-if="o.packaging_id">
|
|
|
|
<div class="col-xs-12" style="font-size:24px; font-weight:bold;">Package Type: <span t-field="o.packaging_id.name"/></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</t>
|
|
|
|
</template>
|
|
|
|
</data>
|
2018-01-16 11:34:37 +01:00
|
|
|
</flectra>
|