Add missing rounding in creation of move of inventory for issue2007

This commit is contained in:
Cédric Krier committed 2011-05-10 15:03:54 +02:00
1 parent 29232c63ea
commit c88eebba5d
1 file changed
+5 -1
+5 -1
View File
@@ -263,7 +263,11 @@ class InventoryLine(ModelSQL, ModelView):
:return: the stock.move id or None
'''
move_obj = self.pool.get('stock.move')
delta_qty = line.expected_quantity - line.quantity
uom_obj = self.pool.get('product.uom')
delta_qty = uom_obj.compute_qty(line.uom,
line.expected_quantity - line.quantity,
line.uom)
if delta_qty == 0.0:
return
from_location = line.inventory.location.id