# Tree Form XML, List Filter

**URL:** https://discuss.tryton.org/t/tree-form-xml-list-filter/1428
**Category:** Developer
**Created:** [June 1, 2019, 4:55pm UTC](https://discuss.tryton.org/t/tree-form-xml-list-filter/1428 "2019-06-01T16:55:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jerico](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@jerico](https://discuss.tryton.org/u/jerico)
#### Post date: [June 1, 2019, 4:55pm UTC](https://discuss.tryton.org/t/tree-form-xml-list-filter/1428/1 "2019-06-01T16:55:15Z")

</div>

They could support you with the shape of the tree, I would like to filter that list that is displayed in the shape of the tree.

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 1, 2019, 8:51pm UTC](https://discuss.tryton.org/t/tree-form-xml-list-filter/1428/2 "2019-06-01T20:51:19Z")

</div>

It is not allowed because the children of a record comes from a One2Many or Many2Many and a field can not be filtered to stay coherent.  
You should use flat structure if you want to filter. You may look at the GeneralLedger Model which was implemented among others for this reason.

---

<div class="post-metadata">

### Author: ![jerico](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/j/b19c9b/32.png) [@jerico](https://discuss.tryton.org/u/jerico)
#### Post date: [June 1, 2019, 10:07pm UTC](https://discuss.tryton.org/t/tree-form-xml-list-filter/1428/3 "2019-06-01T22:07:37Z")

</div>

Thank you very much for the information 🙂
