[FIX] stock: don't create procurements of 0 qty for orderpoints
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user