[FIX] base/ir: Run cron manually calls _callback with current uid

It should be called with the user on set on the cron itself
This commit is contained in:
Yannick Tivisse
2016-03-17 10:10:28 +01:00
parent 0c1c1f60b6
commit b78a64a2cc
+1 -1
View File
@@ -87,7 +87,7 @@ class ir_cron(osv.osv):
context={}
cron_obj = self.browse(cr, uid, ids, context=context)
for cron in cron_obj:
self._callback(cr, uid, cron_obj.model, cron_obj.function, cron_obj.args, cron_obj.id)
self._callback(cr, cron_obj.user_id, cron_obj.model, cron_obj.function, cron_obj.args, cron_obj.id)
return True
def _handle_callback_exception(self, cr, uid, model_name, method_name, args, job_id, job_exception):