From 2eacadc5d446ba15e36e2c8be7428465af44f96f Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Tue, 17 Dec 2013 16:32:58 +0100 Subject: [PATCH] [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 --- addons/procurement/procurement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/procurement/procurement.py b/addons/procurement/procurement.py index b8a396d2738..9126895e9f4 100644 --- a/addons/procurement/procurement.py +++ b/addons/procurement/procurement.py @@ -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: