[MERGE] Sync with trunk, to have last fixes
bzr revid: tde@openerp.com-20140408151253-sabtrlt79uj31stw
This commit is contained in:
commit
759431c6d6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue