1 <?xml version="1.0" encoding="utf-8"?>
4 <template id="report_picking">
5 <t t-call="report.html_container">
6 <t t-foreach="docs" t-as="o">
7 <t t-call="report.external_layout">
9 <div class="row"><div class="col-xs-4 pull-right">
10 <img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.name, 600, 100)" style="width:300px;height:50px;"/>
12 <div t-if="o.picking_type_id.code=='incoming' and o.partner_id">
13 <span><strong>Supplier Address:</strong></span>
15 <div t-if="o.picking_type_id.code=='internal' and o.partner_id">
16 <span><strong>Warehouse Address:</strong></span>
18 <div t-if="o.picking_type_id.code=='outgoing' and o.partner_id">
19 <span><strong>Customer Address:</strong></span>
21 <div t-if="o.partner_id" name="partner_header">
22 <div t-field="o.partner_id"
23 t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
24 <p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p>
28 <span t-field="o.picking_type_id"/>:
29 <span t-field="o.name"/>
31 <table class="table table-condensed">
34 <th><strong>Order (Origin)</strong></th>
35 <th><strong>State</strong></th>
36 <th><strong>Commitment Date</strong></th>
37 <th name="td_sched_date_h"><strong>Scheduled Date</strong></th>
43 <span t-field="o.origin"/>
46 <span t-field="o.state"/>
49 <span t-field="o.date"/>
51 <td name="td_sched_date">
52 <span t-field="o.min_date"/>
59 <table class="table table-condensed" t-if="not o.pack_operation_ids">
62 <th><strong>Product</strong></th>
63 <th class="text-right"><strong>Quantity</strong></th>
64 <t t-if="o.picking_type_id.code != 'incoming'"><th><strong>Source</strong></th></t>
65 <th><strong>Barcode</strong></th>
66 <t t-if="o.picking_type_id.code != 'outgoing'"><th><strong>Destination</strong></th></t>
70 <tr t-foreach="o.move_lines" t-as="move">
71 <td><span t-field="move.product_id"/></td>
72 <td class="text-right"><span t-field="move.product_uom_qty"/> <span t-field="move.product_uom" groups="product.group_uom"/></td>
73 <t t-if="o.picking_type_id.code != 'incoming'"><td><span t-field="move.location_id"/></td></t>
75 <span t-if="move.product_id and move.product_id.ean13">
76 <img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN13', move.product_id.ean13, 600, 100)" style="width:300px;height:50px"/>
79 <t t-if="o.picking_type_id.code != 'outgoing'"><td><span t-field="move.location_dest_id"/></td></t>
83 <table class="table table-condensed" t-if="o.pack_operation_ids">
86 <th><strong>Product</strong></th>
87 <th class="text-right"><strong>Quantity</strong></th>
88 <t t-if="o.picking_type_id.code != 'incoming'"><th><strong>Source</strong></th></t>
89 <th><strong>Barcode</strong></th>
90 <t t-if="o.picking_type_id.code != 'outgoing'"><th><strong>Destination</strong></th></t>
94 <tr t-foreach="o.pack_operation_ids" t-as="pack_operation">
95 <td><span t-field="pack_operation.product_id"/>
96 <t t-if="not pack_operation.product_id and pack_operation.package_id"><span t-field="pack_operation.package_id"/></t></td>
97 <td class="text-right"><span t-field="pack_operation.product_qty"/> <span t-field="pack_operation.product_uom_id" groups="product.group_uom"/></td>
98 <t t-if="o.picking_type_id.code != 'incoming'"><td><span t-field="pack_operation.location_id"/>
99 <span t-if="pack_operation.package_id">:</span>
100 <span t-field="pack_operation.package_id"/>
101 <span t-if="pack_operation.lot_id">:</span>
102 <span t-field="pack_operation.lot_id"/>
106 <span t-if="pack_operation.lot_id">
107 <img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', pack_operation.lot_id.name, 600, 100)" style="width:300px;height:50px"/>
109 <span t-if="pack_operation.product_id and not pack_operation.lot_id and pack_operation.product_id.ean13">
110 <img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('EAN13', pack_operation.product_id.ean13, 600, 100)" style="width:300px;height:50px"/>
112 <span t-if="pack_operation.package_id and not pack_operation.product_id">
113 <img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', pack_operation.package_id.name, 600, 100)" style="width:300px;height:50px"/>
116 <t t-if="o.picking_type_id.code != 'outgoing'"><td><span t-field="pack_operation.location_dest_id"/>
117 <span t-if="pack_operation.result_package_id">:</span>
118 <span t-field="pack_operation.result_package_id"/>