[IMP] Improve picking report with moves, barcode and picking type name + addresses

bzr revid: jco@openerp.com-20140307172803-x2x99msrs44ws32a
This commit is contained in:
Josse Colpaert 2014-03-07 18:28:03 +01:00
parent be905c9432
commit b3c7fd4332
1 changed files with 42 additions and 14 deletions

View File

@ -6,20 +6,48 @@
<t t-foreach="docs" t-as="o">
<t t-call="report.external_layout">
<div class="page">
<div t-if="o.picking_type_id">
<span t-field="o.picking_type_id.name"/>
<table class="table table-condensed">
<tr t-foreach="o.pack_operation_ids" t-as="pack_operation">
<td><span t-field="pack_operation.product_id"/></td>
<td><span t-field="pack_operation.product_id"/></td>
<td><span t-field="pack_operation.product_qty"/></td>
<td><span t-field="pack_operation.location_id"/></td>
<td><span t-field="pack_operation.package_id"/></td>
<td><span t-field="pack_operation.lot_id"/></td>
<td><span t-field="pack_operation.location_dest_id"/></td>
</tr>
</table>
</div>
<div class="row"><div class="col-xs-4 pull-right">
<img t-att-src="'/report/barcode/Standard39/%s' % o.name"/>
</div></div>
<div t-if="o.picking_type_id.code=='incoming'">
<span><strong>Supplier Address:</strong></span>
</div>
<div t-if="o.picking_type_id.code=='internal'">
<span><strong>Warehouse Address:</strong></span>
</div>
<div t-if="o.picking_type_id.code=='outgoing'">
<span><strong>Customer Address:</strong></span>
</div>
<div t-if="o.partner_id">
<div t-field="o.partner_id"
t-field-options='{"widget": "contact", "fields": ["address", "name", "phone", "fax"], "no_marker": true}'/>
<p t-if="o.partner_id.vat">VAT: <span t-field="o.partner_id.vat"/></p>
</div>
<h2>
<span t-field="o.picking_type_id"/>:
<span t-field="o.name"/>
</h2>
<h3>Quantities Demanded</h3>
<table class="table table-condensed">
<tr t-foreach="o.move_lines" t-as="move">
<td><span t-field="move.product_id"/></td>
<td><span t-field="move.product_uom_qty"/><span t-field="move.product_uom"/></td>
<td><span t-field="move.location_id"/></td>
<td><span t-field="move.location_dest_id"/></td>
</tr>
</table>
<h3>Quantities Chosen</h3>
<table class="table table-condensed">
<tr t-foreach="o.pack_operation_ids" t-as="pack_operation">
<td><span t-field="pack_operation.product_id"/></td>
<td><span t-field="pack_operation.product_qty"/></td>
<td><span t-field="pack_operation.location_id"/></td>
<td><span t-field="pack_operation.package_id"/></td>
<td><span t-field="pack_operation.lot_id"/></td>
<td><span t-field="pack_operation.location_dest_id"/></td>
</tr>
</table>
</div>
</t>
</t>