bugfix375361

bzr revid: fp@tinyerp.com-20090520115024-453om2pqctly8hv9
This commit is contained in:
Fabien Pinckaers 2009-05-20 13:50:24 +02:00
parent 0d6b329df5
commit 376a814869
1 changed files with 3 additions and 0 deletions

View File

@ -107,6 +107,9 @@ class ir_cron(osv.osv, netsvc.Agent):
addsql = ', active=False'
cr.execute("update ir_cron set nextcall=%s, numbercall=%s"+addsql+" where id=%s", (nextcall.strftime('%Y-%m-%d %H:%M:%S'), numbercall, job['id']))
cr.commit()
cr.commit()
except Exception,e:
cr.rollback()
finally:
cr.close()