Help

欢迎!

该社区面向专业人士和我们产品和服务的爱好者。
分享和讨论最好的内容和新的营销理念,建立您的专业形象,一起成为更好的营销人员。


0

Making a one2many field non clickable

Avatar
odoo
Avatar
Discard
1 Answer
0
Avatar
odoo
Best Answer

Hi,

You can disable the form view of that one2many field by defining  style="pointer-events:none;".
For example you can refer the following code

<field name="line_ids"  style="pointer-events:none;">
<tree string="Lines" editable="bottom">
<field name="serial_no"/>
<field name="name"/>
<field name="category_id"/>
<field name="child_id"/>
</tree>
</field>

But after using this option you cant edit the field.

Refer https://stackoverflow.com/questions/51321569/how-to-restrict-disable-the-form-view-while-click-tree-view-of-one2many-field-i

Thanks

3 Comments
Avatar
Discard
Avatar
odoo
-

How can it be editable having non-clickable?

Avatar
odoo
-

@Kamrul: that's something contradictory, shouldn't be as like that

Avatar
odoo
-

how is there any way that we could click it for purpose in copying it but can not show pop up?