2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-27 09:10:51 +00:00

Top level cascade ()

* Add "top_level" filter for PartCategory API endpoint

* Update CUI tables

* Update PUI table

* Similar updates for stock location table

* Fix "parent" field label

* Bump API version
This commit is contained in:
Oliver
2024-06-26 12:28:33 +10:00
committed by GitHub
parent 81ae9026b2
commit 937824dceb
10 changed files with 66 additions and 7 deletions
src

@ -130,7 +130,8 @@ export function PartCategoryTable({ parentId }: { parentId?: any }) {
props={{
enableDownload: true,
params: {
parent: parentId
parent: parentId,
top_level: parentId === undefined ? true : undefined
},
tableFilters: tableFilters,
tableActions: tableActions,

@ -145,7 +145,8 @@ export function StockLocationTable({ parentId }: { parentId?: any }) {
enableLabels: true,
enableReports: true,
params: {
parent: parentId
parent: parentId,
top_level: parentId === undefined ? true : undefined
},
tableFilters: tableFilters,
tableActions: tableActions,