[FIX] Get remaining has to use qty in UoM

bzr revid: jco@openerp.com-20130903163104-jv8m1ys6znnz0yoc
This commit is contained in:
Josse Colpaert
2013-09-03 18:31:04 +02:00
parent e7d5622c7e
commit e0e2f8c82f
+1 -1
View File
@@ -1033,7 +1033,7 @@ class stock_move(osv.osv):
def _get_remaining_qty(self, cr, uid, ids, field_name, args, context=None):
res = {}
for move in self.browse(cr, uid, ids, context=context):
res[move.id] = move.product_uom_qty
res[move.id] = move.product_qty
for quant in move.reserved_quant_ids:
res[move.id] -= quant.qty
return res