maha lakshmi
maha lakshmi

Reputation: 61

How to restrict/disable the form view, while click tree view of one2many field in Odoo

How to restrict/disable the form view, while click the tree view of one2many field in Odoo.

Upvotes: 4

Views: 3788

Answers (3)

qdev
qdev

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

Faizan Tahir
Faizan Tahir

Reputation: 131

Use style:

<field name="your_o2m" style="pointer-events:none;" />

Upvotes: 8

Quentin THEURET
Quentin THEURET

Reputation: 1232

Try this on your field XML definition :

<field name="your_o2m" mode="tree" />

Upvotes: 1

Related Questions