Customize Filter in Item list view

I’m customizing ERPNext for a textile industry. In Item list view I have a default filter that shows only products that belongs to “Products” group. “Products” has a child group called “Shirts”, but when I filter by “Products” group, items which belongs to “Shirts” are not showed.

How can I customize the filter so that when I filter “Products” group the list shows all items that belongs to “Products” and also all that belongs to its child groups? Where is the query that list view uses to retrieve items?

Thanks

Are you planning to contribute this?

So in case of Nested Set models, we will have to write special functionality to add those conditions when a parent node is selected. Maybe start with a GitHub Issue. I think a lot of people would want it.

I have the same problem