[ADD] Start report picking

bzr revid: jco@openerp.com-20140306104143-8lmnpk006v1cr6xf
This commit is contained in:
Josse Colpaert 2014-03-06 11:41:43 +01:00
parent d305b72bde
commit be905c9432
3 changed files with 39 additions and 0 deletions

View File

@ -88,6 +88,7 @@ Dashboard / Reports for Warehouse Management will include:
'report/report_stock_view.xml',
'board_warehouse_view.xml',
'res_config_view.xml',
'views/report_stockpicking.xml',
],
'test': [
'test/inventory.yml',

View File

@ -1,6 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<report
string="Picking"
id="action_report_picking"
model="stock.picking"
report_type="qweb-pdf"
name="stock.report_picking"
file="stock.report_picking"
/>
<report auto="False" id="report_product_history" model="product.product" name="stock.product.history" string="Stock Level Forecast"/>
<report id="report_picking_list" model="stock.picking" name="stock.picking.list.internal" string="Picking Slip" rml="stock/report/picking_internal.rml"/>
<report id="report_quant_package_barcode" model="stock.quant.package" name="stock.quant.package.barcode" string="Package BarCode" rml="stock/report/package_barcode.rml"/>

View File

@ -0,0 +1,29 @@
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<template id="report_picking">
<t t-call="report.html_container">
<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>
</t>
</t>
</t>
</template>
</data>
</openerp>