Hi everyone. I have a form view with a one2many field, which I want to display as a tree (it has parent and childrens). The problem is that it shows me the children fields, inside and outside the parent, if I place the following filter in the field:
filter = [('parent', '=', None)]
It looks correctly, but when I want to load a parent it doesn’t allow me.
Will it not be simpler to use flat list but ordered with sequence (like the sale with title and subtotal)?
Of course because you put a filter that says the parent must be always None.
You will only be able to create children from the children One2Many in the form view of the line.
I guess you want to move an existing top level line under another one. For that you need to activate the drag and drop feature. This activated by setting a sequence attribute on the tree view.