mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-27 09:10:51 +00:00
Top level cascade (#7514)
* 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:
src
backend
InvenTree
InvenTree
part
stock
frontend
src
tables
@ -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,
|
||||
|
Reference in New Issue
Block a user