Reputation: 61
How to restrict/disable the form view, while click the tree view of one2many field in Odoo.
Upvotes: 4
Views: 3788
Reputation: 1449
I think that no_open
attribute set on the <tree>
might work
<field name="o2m_field" widget="one2many" mode="tree">
<tree no_open="1">
<field name="name"/>
</tree>
</field>
Upvotes: 2
Reputation: 131
Use style:
<field name="your_o2m" style="pointer-events:none;" />
Upvotes: 8
Reputation: 1232
Try this on your field XML definition :
<field name="your_o2m" mode="tree" />
Upvotes: 1