[IMP]: Set the invisible if opportunity_id true

bzr revid: sbh@tinyerp.com-20100119083951-8olhg1zg0tiobl1l
This commit is contained in:
sbh (Open ERP) 2010-01-19 14:09:51 +05:30
parent 2a12174648
commit 05757ebc38
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@
</group>
<group colspan="2" col="4">
<field name="opportunity_id" string="Opportunity Case"/>
<button string="Convert to Opportunity" name="%(wizard_crm_lead_opportunity_set)d" icon="gtk-index" type="action"/>
<button string="Convert to Opportunity" name="%(wizard_crm_lead_opportunity_set)d" icon="gtk-index" type="action" attrs="{'invisible':[('opportunity_id','!=',False)]}"/>
</group>
<notebook colspan="4">
<page string="Leads">