[FIX] don't browse all ids as we refresh every iteration in the worst
case lp bug: https://launchpad.net/bugs/1297887 fixed bzr revid: hbrunn@therp.nl-20140326142923-hvt7t2i8s9mnalki
This commit is contained in:
parent
6bd66db6de
commit
8f49fcb7a2
|
@ -195,7 +195,8 @@ class procurement_order(osv.osv):
|
|||
return self.write(cr, uid, ids, {'state': 'confirmed'}, context=context)
|
||||
|
||||
def run(self, cr, uid, ids, context=None):
|
||||
for procurement in self.browse(cr, uid, ids, context=context):
|
||||
for procurement_id in ids:
|
||||
procurement = self.browse(cr, uid, procurement_id, context=context)
|
||||
if procurement.state not in ("running", "done"):
|
||||
if self._assign(cr, uid, procurement, context=context):
|
||||
procurement.refresh()
|
||||
|
|
Loading…
Reference in New Issue