[FIX] stock: don't create procurements of 0 qty for orderpoints

This commit is contained in:
Josse Colpaert
2015-05-06 09:57:19 +02:00
parent 2260496879
commit 2afb13a9b4
+1 -1
View File
@@ -510,7 +510,7 @@ class procurement_order(osv.osv):
qty -= subtract_qty[op.id]
qty_rounded = float_round(qty, precision_rounding=op.product_uom.rounding)
if qty_rounded >= 0:
if qty_rounded > 0:
proc_id = procurement_obj.create(cr, uid,
self._prepare_orderpoint_procurement(cr, uid, op, qty_rounded, context=context),
context=context)