I have form view and inside it one2many relation with tree view. I want to hide or disable "do_work"
button on edit mode.
I noticed what I can hide button if it is not in tree view on edit mode by class="oe_edit_only"
. But is it possible to hide or disable it in tree view because the same class doesn't work for me?
<field name="new_line">
<tree editable="bottom">
<field name="name"/>
<field name="quantity"/>
<field name="state" invisible="1"/>
<field name="vendor"/>
<field name="price_unit"/>
<button name="do_work" type="object" string="Copy"/>
</tree>
</field>
Your advice or suggestions will be much appreciated.