[IMP] survery : the button Test survey shouldn't be available before saving the survey

bzr revid: vir@tinyerp.com-20100929062316-a8nq1ps498pytof1
This commit is contained in:
Vir (Open ERP) 2010-09-29 11:53:16 +05:30
parent 9a82843d05
commit 16e73105c1
1 changed files with 2 additions and 1 deletions

View File

@ -25,9 +25,10 @@
<field name="title" select="1"/>
<group col="6" colspan="6">
<field name="responsible_id"/>
<field name="id" invisible="1"/>
<button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
string="Test Survey" type="action" icon="gtk-new"
context="{'active':True,'survey_id': active_id}"/>
context="{'active':True,'survey_id': active_id}" attrs="{'invisible':[('id','=',0)]}"/>
<button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"
string="Answer Survey" type="action" icon="gtk-execute" context="{'survey_id': active_id}" attrs="{'invisible':[('state','!=','open')]}"/>
<button name="%(action_view_survey_question_message)d" states="open,draft,close,cancel"