[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:
Goffin Simon
2016-03-07 13:18:23 +01:00
parent 9519ad42ea
commit fcc733241c
+8 -1
View File
@@ -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"/>