# Domain to get the children of a view location

**URL:** https://discuss.tryton.org/t/domain-to-get-the-children-of-a-view-location/1233
**Category:** Developer
**Created:** [March 14, 2019, 10:49am UTC](https://discuss.tryton.org/t/domain-to-get-the-children-of-a-view-location/1233 "2019-03-14T10:49:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Vincenzo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/vincenzo/32/847_2.png) [@Vincenzo](https://discuss.tryton.org/u/Vincenzo)
#### Post date: [March 14, 2019, 10:49am UTC](https://discuss.tryton.org/t/domain-to-get-the-children-of-a-view-location/1233/1 "2019-03-14T10:49:29Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [March 14, 2019, 11:06am UTC](https://discuss.tryton.org/t/domain-to-get-the-children-of-a-view-location/1233/2 "2019-03-14T11:06:33Z")

</div>

> [@Vincenzo](#):
>
> 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']]`

You should use the parent field for searching whith child\_of operator.  
Your domain should be:

> [(‘parent’, ‘child\_of’, [375])]

Hope it helps

---

<div class="post-metadata">

### Author: ![system](https://discuss-cdn.tryton.org/uploads/default/original/1X/c6f8ec0a40525cdcd50058c734283450a4b3d38b.png) [@system](https://discuss.tryton.org/u/system)
#### Post date: [April 13, 2019, 11:06am UTC](https://discuss.tryton.org/t/domain-to-get-the-children-of-a-view-location/1233/3 "2019-04-13T11:06:43Z")

</div>

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