[FIX]in leads form view, invisible Escalate button, when sales team is blank,in sale order form view, visible update button in Quotation Sent status

bzr revid: dle@openerp.com-20121226110141-fxrkpkbgh6bwy7j1
This commit is contained in:
dle@openerp.com 2012-12-26 12:01:41 +01:00
parent 47b4ed737f
commit e5e8d2fbe0
2 changed files with 3 additions and 4 deletions

View File

@ -156,7 +156,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>
@ -421,8 +421,7 @@
<label for="section_id"/>
<div>
<field name="section_id" widget="selection"/>
<button name="case_escalate" string="Escalate" type="object" class="oe_link"
attrs="{'invisible': [('section_id', '=', False)]}"/>
<button name="case_escalate" string="Escalate" type="object" class="oe_link" attrs="{'invisible': ['|', ('section_id','=',False), ('state', 'not in', ['draft','open','pending'])]}"/>
</div>
</group>
<group>

View File

@ -246,7 +246,7 @@
<div class="oe_subtotal_footer_separator oe_inline">
<label for="amount_total" />
<button name="button_dummy"
states="draft" string="(update)" type="object" class="oe_edit_only oe_link"/>
states="draft,sent" string="(update)" type="object" class="oe_edit_only oe_link"/>
</div>
<field name="amount_total" nolabel="1" class="oe_subtotal_footer_separator" widget='monetary' options="{'currency_field': 'currency_id'}"/>
</group>