[REVERT] reverted the changes in _get_orders method
authorBharat R. Devnani (OpenERP) <bde@tinyerp.com>
Mon, 26 Aug 2013 07:14:05 +0000 (12:44 +0530)
committerBharat R. Devnani (OpenERP) <bde@tinyerp.com>
Mon, 26 Aug 2013 07:14:05 +0000 (12:44 +0530)
bzr revid: bde@tinyerp.com-20130826071405-yax8hqw0esrll766

addons/sale_stock/sale_stock.py

index 920be17..0153474 100644 (file)
@@ -57,7 +57,7 @@ class sale_order(osv.osv):
 
     def _get_orders(self, cr, uid, ids, context=None):
         res = set()
-        for move in self.pool.get('stock.move').browse(cr, uid, ids, context=context):
+        for move in self.browse(cr, uid, ids, context=context):
             if move.procurement_id and move.procurement_id.sale_line_id:
                 res.add(move.procurement_id.sale_line_id.order_id.id)
         return list(res)