projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bde55ba
)
[FIX] gamification: avoid recomputing every goal for every challenge
author
Martin Trigaux
<mat@openerp.com>
Tue, 6 May 2014 10:29:42 +0000
(12:29 +0200)
committer
Martin Trigaux
<mat@openerp.com>
Tue, 6 May 2014 10:29:42 +0000
(12:29 +0200)
bzr revid: mat@openerp.com-
20140506102942
-obopc9j5a2136cxh
addons/gamification/models/challenge.py
patch
|
blob
|
history
diff --git
a/addons/gamification/models/challenge.py
b/addons/gamification/models/challenge.py
index
a6c467f
..
f4704f2
100644
(file)
--- a/
addons/gamification/models/challenge.py
+++ b/
addons/gamification/models/challenge.py
@@
-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: