[IMP] stock: picking report should show only what is reserved when partially 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.
This commit is contained in:
parent
deb1db281b
commit
57593e5898
|
@ -83,15 +83,24 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr t-foreach="o.move_lines" t-as="move">
|
<tr t-foreach="o.move_lines" t-as="move">
|
||||||
<td><span t-field="move.product_id"/></td>
|
<t t-if="(o.state != 'partially_available') or (move.reserved_availability > 0)">
|
||||||
<td class="text-right"><span t-field="move.product_uom_qty"/> <span t-field="move.product_uom" groups="product.group_uom"/></td>
|
<td><span t-field="move.product_id"/></td>
|
||||||
<t t-if="o.picking_type_id.code != 'incoming'"><td><span t-field="move.location_id"/></td></t>
|
<td class="text-right">
|
||||||
<td>
|
<t t-if="o.state == 'partially_available'">
|
||||||
<span t-if="move.product_id and move.product_id.ean13">
|
<span t-field="move.reserved_availability"/> <span t-field="move.product_id.uom_id" groups="product.group_uom"/>
|
||||||
<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"/>
|
</t>
|
||||||
</span>
|
<t t-if="o.state != 'partially_available'">
|
||||||
</td>
|
<span t-field="move.product_uom_qty"/> <span t-field="move.product_uom" groups="product.group_uom"/>
|
||||||
<t t-if="o.picking_type_id.code != 'outgoing'"><td><span t-field="move.location_dest_id"/></td></t>
|
</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&value=%s&width=%s&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>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in New Issue