1

Is there a way to disable the click on records from a tree view,so that the user can only see displayed fields (not details displayed when clicking)?

I've tried to put readonly="1".

Edited I have a one2many field that i display in a tree view in my form view like this:

enter image description here

When some record is clicked in the tree view, details are displayed in a popup like this:

enter image description here

i don't wan't that this popup show up for anyone

Could someone please tell me is there a way to do it, maybe by using some css class? Thank you

soukainas
  • 49
  • 1
  • 9

2 Answers2

2

in the form and tree view you can add create='false' to disable the create button and edit='false' to disable the edit button.Also use editable="top" or editable="bottom" if you dont want the form view to popup. for example

<tree string="Sale Order" create="false" edit="false" editable="bottom">
...
...
...
</tree>
OmaL
  • 5,037
  • 3
  • 31
  • 48
0

I encounter this problem. Try this. Instead of

<field name="view_mode">tree,form</field>

change it to

<field name="view_mode">tree</field>

then no form view will show you and the tree view is not clickable anymore.

law rence
  • 169
  • 1
  • 18