I have added the parent_id for the filtering fields in the InvenTree #3876, however I do not know how to filter the categories without parent.
If I do a
>>> cats = PartCategory.list(api, parent_id='')
It ends up in a request:
[28/Oct/2022 22:01:54] "GET /api/part/category/?parent_id= HTTP/1.1" 200 470422
but it sends back all categories.
I have added the parent_id for the filtering fields in the InvenTree #3876, however I do not know how to filter the categories without parent.
If I do a
>>> cats = PartCategory.list(api, parent_id='')
It ends up in a request:[28/Oct/2022 22:01:54] "GET /api/part/category/?parent_id= HTTP/1.1" 200 470422
but it sends back all categories.Is there any trick what I am missing?