From 737db203a65bc75bdfb2cde7d1b55ec5496b147d Mon Sep 17 00:00:00 2001 From: "JMA,VRA" <> Date: Tue, 21 Sep 2010 17:34:42 +0530 Subject: [PATCH] [FIX] MRP : import statement fix bzr revid: jvo@tinyerp.com-20100921120442-cqgi121lgzkqsmoi --- addons/mrp/mrp.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/mrp/mrp.py b/addons/mrp/mrp.py index 5ad90bf25d6..87dfe8dd670 100644 --- a/addons/mrp/mrp.py +++ b/addons/mrp/mrp.py @@ -378,7 +378,6 @@ class one2many_domain(fields.one2many): move_obj = obj.pool.get('stock.move') res = {}.fromkeys(ids, []) - key = operator.itemgetter(0) 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)