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:
9588999
)
[FIX] fixes an incorrect call to read_group (the groupby argument should be a list...
author
Gery Debongnie
<ged@openerp.com>
Fri, 4 Apr 2014 11:42:16 +0000
(13:42 +0200)
committer
Gery Debongnie
<ged@openerp.com>
Fri, 4 Apr 2014 11:42:16 +0000
(13:42 +0200)
bzr revid: ged@openerp.com-
20140404114216
-35wqvkegnpnn7mil
addons/gamification/models/goal.py
patch
|
blob
|
history
diff --git
a/addons/gamification/models/goal.py
b/addons/gamification/models/goal.py
index
8e79c43
..
925b05d
100644
(file)
--- a/
addons/gamification/models/goal.py
+++ b/
addons/gamification/models/goal.py
@@
-279,7
+279,7
@@
class gamification_goal(osv.Model):
if goal.definition_id.computation_mode == 'sum':
field_name = goal.definition_id.field_id.name
- res = obj.read_group(cr, uid, domain, [field_name], [''], context=context)
+ res = obj.read_group(cr, uid, domain, [field_name], [field_name], context=context)
new_value = res and res[0][field_name] or 0.0
else: # computation mode = count