Hello,
i am trying to hide a button in the header section of a form view:
<field name="arch" type="xml">
<form string="Collect Order" version="7.0">
<header>
<button name="become_interested" states="draft, confirmed" string="Interest" type="object" attrs="{'invisible':[('interested','=',True)]}" class="oe_highlight" />
<button name="lost_interested" states="draft, confirmed, price, pending" string="Lost Interest" type="object" class="oe_higlhight" attrs="{'invisible': [('interested','=',False)]}" />
<button name="interest_to_buy" states="pending" string="Order" type="object" class="oe_highlight"/>
<field name="state" widget="statusbar" nolabel="1" />
</header>
Under attrs Tag the invisible doesn't work. Does i have a typo or programming error, i don't see?
how about modifying the CSS stylesheet?
but shouldn't it work this way? i had a look at accounting module, and there are also buttons made invisible this way...