Domain to get the children of a view location


(Vincenzo Ferraro) #1

Hello everyone,
I am looking for a way to get the locations contained in a location view (id location: 375).
The domain I’m trying to use is:

[['id', 'child_of', [375], 'parent']]

Who can help me?


(Sergi Almacellas Abellana) #2

You should use the parent field for searching whith child_of operator.
Your domain should be:

[(‘parent’, ‘child_of’, [375])]

Hope it helps


(system) closed #3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.