[FIX] stock: wrong state in delivery slip report
When the stock.picking record is linked to some pack.operation records, the move line state displayed has to be the move line with the same product as the one in the pack operation record. opw:671192
This commit is contained in:
@@ -100,7 +100,14 @@
|
||||
<td t-if="not pack_operation.pack_lot_ids"/>
|
||||
</t>
|
||||
<td>
|
||||
<span t-field="pack_operation.picking_id.move_lines[pack_operation_index].state"/>
|
||||
<t t-set="mls" t-value="pack_operation.picking_id.move_lines"/>
|
||||
<t t-set="check" t-value="True"/>
|
||||
<t t-foreach="mls" t-as="ml">
|
||||
<t t-if="ml.product_id.id == pack_operation.product_id.id and check">
|
||||
<t t-set="check" t-value="False"/>
|
||||
<span t-field="ml.state"/>
|
||||
</t>
|
||||
</t>
|
||||
</td>
|
||||
<td>
|
||||
<span t-field="pack_operation.location_id"/>
|
||||
|
||||
Reference in New Issue
Block a user