[FIX] stock: Delivery Order Issues

When printing the delivery slip of a stock.pick, the message:

"All items couldn't be shipped, the remaining ones will be shipped as soon as they become available."

must be displayed only if there is still a backorder to process for this picking.

opw:1817573
This commit is contained in:
Goffin Simon
2018-03-01 18:45:55 +01:00
parent 5ad55264e4
commit c2e878e34c
+1 -1
View File
@@ -117,7 +117,7 @@
</td>
<td class="text-right" t-if="move_line.state == 'done'">
<t t-if="move_line.ordered_qty != move_line.qty_done">
<t t-set="backorder" t-value="True"/>
<t t-set="backorder" t-value="o.search([('backorder_id', '=', o.id), ('state', 'not in', ['cancel', 'done'])])"/>
</t>
<span t-field="move_line.qty_done"/>
<span t-field="move_line.product_uom_id"/>