[FIX] cron call with empty context
bzr revid: mat@openerp.com-20130324153934-pmaw4nlb8z02tfnq
This commit is contained in:
@@ -228,7 +228,7 @@ class gamification_badge(osv.Model):
|
||||
|
||||
return res
|
||||
|
||||
def _cron_check(self, cr, uid, context):
|
||||
def _cron_check(self, cr, uid, context=None):
|
||||
"""Run cron on all automatic goals"""
|
||||
ids = self.search(cr, uid, [('rule_automatic', '!=', 'manual')], context=context)
|
||||
self.check_automatic(cr, uid, ids, context=context)
|
||||
|
||||
Reference in New Issue
Block a user