From c22dd466102ff04d692c3e2033d3d31bbf556aba Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Sun, 24 Mar 2013 16:39:34 +0100 Subject: [PATCH] [FIX] cron call with empty context bzr revid: mat@openerp.com-20130324153934-pmaw4nlb8z02tfnq --- addons/gamification/badge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/gamification/badge.py b/addons/gamification/badge.py index bb958d7d4b4..1ee779880d6 100644 --- a/addons/gamification/badge.py +++ b/addons/gamification/badge.py @@ -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)