[DEL]Revert changes of rev 8478
authordle@openerp.com <>
Wed, 26 Dec 2012 10:33:19 +0000 (11:33 +0100)
committerdle@openerp.com <>
Wed, 26 Dec 2012 10:33:19 +0000 (11:33 +0100)
bzr revid: dle@openerp.com-20121226103319-1w4ac1h4y7cfrhns

addons/crm/crm_lead_view.xml
addons/sale/sale_view.xml

index 42da8fa..2bab40e 100644 (file)
                             <label for="section_id"/>
                             <div>
                                 <field name="section_id"/>
-                                <button name="case_escalate" string="Escalate" type="object" attrs="{'invisible': [('section_id','=',False)]}"/>
+                                <button name="case_escalate" string="Escalate" type="object" states="draft,open,pending"/>
                             </div>
                             <field name="type" invisible="1"/>
                         </group>
                                 <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)]}"/>
                                 </div>
                             </group>
                             <group>
index 7ded7cc..0edda45 100644 (file)
                                 <div class="oe_subtotal_footer_separator oe_inline">
                                     <label for="amount_total" />
                                     <button name="button_dummy"
-                                        states="draft,sent" string="(update)" type="object" class="oe_edit_only oe_link"/>
+                                        states="draft" 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>