Don't create move with quantity of zero

when synchronise outgoing moves with inventory moves

issue4632
review13081002
This commit is contained in:
Cédric Krier committed 2015-03-13 10:29:08 +01:00
1 parent 1375ef074e
commit aa65bf9f3f
1 file changed
+2
+2
View File
@@ -1155,6 +1155,8 @@ class ShipmentOut(Workflow, ModelSQL, ModelView):
else:
out_quantity = move.quantity
if not out_quantity:
continue
unit_price = Uom.compute_price(move.product.default_uom,
move.product.list_price, move.uom)
to_create.append(shipment._get_outgoing_move(move))