[FIX] stock: the scheduler must commit also when no procurement go from running -> done because there may be some that went from running -> exception

bzr revid: qdp-launchpad@openerp.com-20131217153258-vgtkr4wlqd4sn7m1
This commit is contained in:
Quentin (OpenERP) 2013-12-17 16:32:58 +01:00
parent a44af74330
commit 2eacadc5d4
1 changed files with 1 additions and 1 deletions

View File

@ -292,7 +292,7 @@ class procurement_order(osv.osv):
break
done = self.check(cr, uid, ids, context=context)
offset += len(ids) - len(done)
if use_new_cursor and len(done):
if use_new_cursor:
cr.commit()
finally: