Skip to content
Snippets Groups Projects
Commit 1a7c8953 authored by Cecile Tonglet's avatar Cecile Tonglet
Browse files

[IMP] calculating nextcall datetime of a cron SHOULD use the cron's user

parent 7f886811
No related branches found
No related tags found
No related merge requests found
......@@ -150,8 +150,8 @@ class ir_cron(osv.osv):
must not be committed/rolled back!
"""
try:
now = fields.datetime.context_timestamp(job_cr, SUPERUSER_ID, datetime.now())
nextcall = fields.datetime.context_timestamp(job_cr, SUPERUSER_ID, datetime.strptime(job['nextcall'], DEFAULT_SERVER_DATETIME_FORMAT))
now = fields.datetime.context_timestamp(job_cr, job['user_id'], datetime.now())
nextcall = fields.datetime.context_timestamp(job_cr, job['user_id'], datetime.strptime(job['nextcall'], DEFAULT_SERVER_DATETIME_FORMAT))
numbercall = job['numbercall']
ok = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment