Skip to content

Commit

Permalink
[IMP] stock: picking report should show only what is reserved when pa…
Browse files Browse the repository at this point in the history
…rtially available

Only when the picking is partially available, the system will only show the amount of products available.
That way, when working with paper, the warehouse operator will only get what is available.  This is the case
where we did not launch the bar code interface or the transfer wizard.
  • Loading branch information
jco-odoo committed Mar 13, 2015
1 parent deb1db2 commit 57593e5
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions addons/stock/views/report_stockpicking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,24 @@
</thead>
<tbody>
<tr t-foreach="o.move_lines" t-as="move">
<td><span t-field="move.product_id"/></td>
<td class="text-right"><span t-field="move.product_uom_qty"/> <span t-field="move.product_uom" groups="product.group_uom"/></td>
<t t-if="o.picking_type_id.code != 'incoming'"><td><span t-field="move.location_id"/></td></t>
<td>
<span t-if="move.product_id and move.product_id.ean13">
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', move.product_id.ean13, 600, 100)" style="width:300px;height:50px"/>
</span>
</td>
<t t-if="o.picking_type_id.code != 'outgoing'"><td><span t-field="move.location_dest_id"/></td></t>
<t t-if="(o.state != 'partially_available') or (move.reserved_availability > 0)">
<td><span t-field="move.product_id"/></td>
<td class="text-right">
<t t-if="o.state == 'partially_available'">
<span t-field="move.reserved_availability"/> <span t-field="move.product_id.uom_id" groups="product.group_uom"/>
</t>
<t t-if="o.state != 'partially_available'">
<span t-field="move.product_uom_qty"/> <span t-field="move.product_uom" groups="product.group_uom"/>
</t>
</td>
<t t-if="o.picking_type_id.code != 'incoming'"><td><span t-field="move.location_id"/></td></t>
<td>
<span t-if="move.product_id and move.product_id.ean13">
<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('EAN13', move.product_id.ean13, 600, 100)" style="width:300px;height:50px"/>
</span>
</td>
<t t-if="o.picking_type_id.code != 'outgoing'"><td><span t-field="move.location_dest_id"/></td></t>
</t>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit 57593e5

Please sign in to comment.