[FIX] close cursor
authorChristophe Simonis <christophe@cobalt>
Mon, 22 Dec 2008 17:16:16 +0000 (18:16 +0100)
committerChristophe Simonis <christophe@cobalt>
Mon, 22 Dec 2008 17:16:16 +0000 (18:16 +0100)
bzr revid: christophe@cobalt-20081222171616-eq35pjic1i4s3rz7

addons/mrp/wizard/wizard_schedulers_all.py

index d2ca06c..c793618 100644 (file)
@@ -40,6 +40,7 @@ def _procure_calculation_all(self, db_name, uid, data, context):
     automatic = data['form']['automatic']
     proc_obj.run_scheduler(cr, uid, automatic=automatic, use_new_cursor=cr.dbname,\
             context=context)
+    cr.close()
     return {}
 
 def _procure_calculation(self, cr, uid, data, context):