[IMP] in leads & oppertunity form view, invisible Escalate button when sales team is blank

bzr revid: fka@tinyerp.com-20121112120131-n7blwfb96z5zz0ym
This commit is contained in:
Foram Katharotiya (OpenERP)
2012-11-12 17:31:31 +05:30
parent 75903aec86
commit e2b882cde7
+2 -2
View File
@@ -189,7 +189,7 @@
<label for="section_id"/>
<div>
<field name="section_id"/>
<button name="case_escalate" string="Escalate" type="object" states="draft,open,pending"/>
<button name="case_escalate" string="Escalate" type="object" attrs="{'invisible': ['|', ('section_id','=',False), ('state', 'not in', ['draft','open','pending'])]}"/>
</div>
<field name="type" invisible="1"/>
</group>
@@ -452,7 +452,7 @@
<label for="section_id"/>
<div>
<field name="section_id" widget="selection"/>
<button name="case_escalate" string="Escalate" type="object" states="draft,open,pending" />
<button name="case_escalate" string="Escalate" type="object" attrs="{'invisible': ['|', ('section_id','=',False), ('state', 'not in', ['draft','open','pending'])]}"/>
</div>
</group>
<group>