diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-03-16 08:23:24 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-03-17 10:10:28 +0100 |
| commit | b78a64a2ccd91e15cb67b9c3fafb3c4efc8a9e84 (patch) | |
| tree | 7902acaf5769f6226fb28f2ca26cb44cce20bf55 | |
| parent | 0c1c1f60b6c2c465798eefcb27ff51982841fb98 (diff) | |
[FIX] base/ir: Run cron manually calls _callback with current uid
It should be called with the user on set on the cron itself
| -rw-r--r-- | openerp/addons/base/ir/ir_cron.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openerp/addons/base/ir/ir_cron.py b/openerp/addons/base/ir/ir_cron.py index 6f19a2247cf..37135d1ade9 100644 --- a/openerp/addons/base/ir/ir_cron.py +++ b/openerp/addons/base/ir/ir_cron.py @@ -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): |
