[FIX] crm: mark lost button does not appear everytime anymore

bzr revid: tde@openerp.com-20130809075228-umybo4y635kf1mrf
This commit is contained in:
Thibault Delavallée 2013-08-09 09:52:28 +02:00
parent 769962e5f9
commit 39cb3e44b1
1 changed files with 2 additions and 1 deletions

View File

@ -380,7 +380,8 @@
<header>
<button name="case_mark_won" string="Mark Won" type="object" class="oe_highlight"
attrs="{'invisible': [('probability', '=', 100)]}"/>
<button name="case_mark_lost" string="Mark Lost" type="object" class="oe_highlight"/>
<button name="case_mark_lost" string="Mark Lost" type="object" class="oe_highlight"
attrs="{'invisible': ['|', ('probability', '=', 0), ('probability', '=', 100)]}"/>
<field name="stage_id" widget="statusbar" clickable="True"
domain="['&amp;', ('section_ids', '=', section_id), '|', ('type', '=', type), ('type', '=', 'both')]"/>
</header>