# Allowed parent types for locations

**URL:** <https://discuss.tryton.org/t/allowed-parent-types-for-locations/4273>\
**Category:** Developer\
**Tags:** stock\
**Created:** [June 3, 2021, 1:50pm UTC](https://discuss.tryton.org/t/allowed-parent-types-for-locations/4273 "2021-06-03T13:50:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergyo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sergyo/32/181_2.png) [@sergyo](https://discuss.tryton.org/u/sergyo)\
**Post date:** [June 3, 2021, 1:50pm UTC](https://discuss.tryton.org/t/allowed-parent-types-for-locations/4273/1 "2021-06-03T13:50:04Z")

</div>

I’m wondering if there is any particular reason to not allow to define a view location as a parent of a warehouse location.

---

<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:** [June 3, 2021, 2:57pm UTC](https://discuss.tryton.org/t/allowed-parent-types-for-locations/4273/2 "2021-06-03T14:57:48Z")

</div>

I thought this was the right solution to get the stock of multiple warehouses as [suggested on the old mailing list](https://groups.google.com/g/tryton/c/JYJpuHsJfCM/m/qkDf9pXwBwAJ)

But this was updated to fix [Infinite loop on creating production\_requests (#4279) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue4279) but it seems I missed to add back the view type as warehouse parent. 🙏 🙏

---

<div class="post-metadata">

**Author:** ![sergyo](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/sergyo/32/181_2.png) [@sergyo](https://discuss.tryton.org/u/sergyo)\
**Post date:** [June 4, 2021, 10:08am UTC](https://discuss.tryton.org/t/allowed-parent-types-for-locations/4273/3 "2021-06-04T10:08:13Z")

</div>

I’ve just filled [https://bugs.tryton.org/issue10487](https://bugs.tryton.org/issue10487)
