[FIX] cron call with empty context

bzr revid: mat@openerp.com-20130324153934-pmaw4nlb8z02tfnq
This commit is contained in:
Martin Trigaux
2013-03-24 16:39:34 +01:00
parent 02725e359d
commit c22dd46610
+1 -1
View File
@@ -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)