mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
Default location column (#7587)
* Add "default_location_detail" serializer to part API * Add column to CUI table * Implement in PUI part table * Update API version
This commit is contained in:
@ -44,6 +44,11 @@ function partTableColumns(): TableColumn[] {
|
||||
sortable: true,
|
||||
render: (record: any) => record.category_detail?.pathstring
|
||||
},
|
||||
{
|
||||
accessor: 'default_location',
|
||||
sortable: true,
|
||||
render: (record: any) => record.default_location_detail?.pathstring
|
||||
},
|
||||
{
|
||||
accessor: 'total_in_stock',
|
||||
sortable: true,
|
||||
@ -327,7 +332,8 @@ export function PartListTable({ props }: { props: InvenTreeTableProps }) {
|
||||
tableActions: tableActions,
|
||||
params: {
|
||||
...props.params,
|
||||
category_detail: true
|
||||
category_detail: true,
|
||||
location_detail: true
|
||||
}
|
||||
}}
|
||||
/>
|
||||
|
Reference in New Issue
Block a user