[FIX] gamification: plan report option displayed when group selected
bzr revid: mat@openerp.com-20130220163044-3362hajlk9ry1bkr
This commit is contained in:
parent
c0089ec658
commit
aca94d473e
|
@ -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)
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in New Issue