Round quantity in get_move_done before compare to 0

issue5755
review32351002
This commit is contained in:
Cédric Krier committed 2016-08-01 21:06:20 +02:00
1 parent b45430130d
commit d19bc5b62f
1 file changed
+1 -1
+1 -1
View File
@@ -1134,7 +1134,7 @@ class SaleLine(ModelSQL, ModelView):
break
quantity -= Uom.compute_qty(move.uom, move.quantity, self.unit)
if done:
if quantity > 0.0:
if self.unit.round(quantity) > 0.0:
done = False
return done