[REVERT] reverted the changes in _get_orders method

bzr revid: bde@tinyerp.com-20130826071405-yax8hqw0esrll766
This commit is contained in:
Bharat R. Devnani (OpenERP) 2013-08-26 12:44:05 +05:30
parent b42f8b53db
commit b97a9da42d
1 changed files with 1 additions and 1 deletions

View 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)