It's possible hide a button with context data information. I need hide the button where the context Boolean field is False
So far i have
ctx ={'some_boolean': True,}
<button name="select_partner" type="object" string="Select" class="oe_highlight" invisible="context.get('some_boolean',False)"/>
but that hide the button in the wrong place
I need something like
<button name="select_partner" type="object" string="Select" class="oe_highlight" attrs="{'invisible':[(context.get('some_boolean'),'!=',True)]}"/>
the second code return an error on the view.
Any sugestion