2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-16 20:15:44 +00:00

API Tree filters (#6536)

* PartCategoryList: Add FilterSet class

* Update PartCategory filters

- Migrate all custom filtering to the FilterSet

* Logic updates

* Revert deleted code

* Implement similar filters for StockLocation list API

* Update API docs

* Unit test updates

* More fix

* Fix for StockLocation filterclass

* Fix PUI tables

* Cleanup CUI tables

* Updated unit tests
This commit is contained in:
Oliver
2024-02-21 23:34:20 +11:00
committed by GitHub
parent a310437dc7
commit 0bfbd45cec
10 changed files with 243 additions and 222 deletions

View File

@ -138,7 +138,7 @@ export function PartCategoryTable({ parentId }: { parentId?: any }) {
props={{
enableDownload: true,
params: {
parent: parentId ?? 'null'
parent: parentId
},
tableFilters: tableFilters,
tableActions: tableActions,

View File

@ -148,7 +148,7 @@ export function StockLocationTable({ parentId }: { parentId?: any }) {
props={{
enableDownload: true,
params: {
parent: parentId ?? 'null'
parent: parentId
},
tableFilters: tableFilters,
tableActions: tableActions,