Skip to content
Snippets Groups Projects
Commit ccf4d142 authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[FIX] gamification: avoid recomputing every goal for every challenge

bzr revid: mat@openerp.com-20140506102942-obopc9j5a2136cxh
parent bde55baa
No related branches found
No related tags found
No related merge requests found
......@@ -396,9 +396,9 @@ class gamification_challenge(osv.Model):
:param list(int) ids: the list of challenge concerned"""
goal_obj = self.pool.get('gamification.goal')
to_update = []
for challenge in self.browse(cr, uid, ids, context=context):
(start_date, end_date) = start_end_date_for_period(challenge.period)
to_update = []
# if no periodicity, use challenge dates
if not start_date and challenge.start_date:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment