2010-10-18 22:47:47 |
Diego Abad |
description |
get function on one2many_domain on mrp.py only return one move. Should be
return a list of all product finished.
Check this
move_ids = move_obj.search(cr, user, self._domain+[('production_id', 'in', tuple(ids))], context=context)
related_move_dict = dict([(o.production_id.id, [o.id]) for o in move_obj.browse(cr, user, move_ids, context=context)])
res.update(related_move_dict) |
get function on one2many_domain on mrp.py only return one move. Should be
return a list of all product finished.
Check this
move_ids = move_obj.search(cr, user, self._domain+[('production_id', 'in', tuple(ids))], context=context)
related_move_dict = dict([(o.production_id.id, [o.id]) for o in move_obj.browse(cr, user, move_ids, context=context)])
res.update(related_move_dict)
|
|