[FIX] gamification: plan report option displayed when group selected

bzr revid: mat@openerp.com-20130220163044-3362hajlk9ry1bkr
This commit is contained in:
Martin Trigaux 2013-02-20 17:30:44 +01:00
parent c0089ec658
commit aca94d473e
2 changed files with 3 additions and 2 deletions

View File

@ -228,6 +228,7 @@ class gamification_goal(osv.Model):
return self.write(cr, uid, ids, {'state': 'inprogress'}, context=context)
def action_refresh(self, cr, uid, ids, context=None):
"""Update the state of goal, force to recomputes values"""
return self.update(cr, uid, ids, context=context, force_update=True)

View File

@ -72,8 +72,8 @@
</group>
<group string="Report">
<field name="report_message_group_id" />
<field name="report_message_frequency" attrs="{'invisible':[('report_message_group_id','!=', False)], 'required':[('report_message_group_id','!=', False)]}"/>
<field name="report_header" attrs="{'invisible':[('report_message_group_id','!=', False)]}"/>
<field name="report_message_frequency" attrs="{'invisible':[('report_message_group_id','=', False)], 'required':[('report_message_group_id','=', False)]}"/>
<field name="report_header" attrs="{'invisible':[('report_message_group_id','=', False)]}"/>
</group>
</group>