[FIX]ir_cron: Attribute Error _strptime occurred when more than one schedule action...
authorSerge sboivin <>
Mon, 29 Oct 2012 12:27:03 +0000 (17:57 +0530)
committerSomesh Khare <skh@tinyerp.com>
Mon, 29 Oct 2012 12:27:03 +0000 (17:57 +0530)
bzr revid: skh@tinyerp.com-20121029122703-ertsfec7938xkt73

openerp/addons/base/ir/ir_cron.py

index a46e4f3..4e09f0d 100644 (file)
@@ -240,7 +240,7 @@ class ir_cron(osv.osv):
                     if not acquired_lock:
                         # we're exiting due to an exception while acquiring the lot
                         task_cr.close()
-
+                datetime.strptime('2012-01-01', '%Y-%m-%d')
                 # Got the lock on the job row, now spawn a thread to execute it in the transaction with the lock
                 task_thread = threading.Thread(target=self._run_job, name=job['name'], args=(task_cr, job, now))
                 # force non-daemon task threads (the runner thread must be daemon, and this property is inherited by default)