[FIX] fixes an incorrect call to read_group (addon gamification)
bzr revid: ged@openerp.com-20140408135219-95sdjix3yzs2ig83
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user