2
0
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:
Oliver
2024-07-09 08:13:21 +10:00
committed by GitHub
parent 189948be06
commit 1017ff0605
7 changed files with 69 additions and 10 deletions

View File

@ -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
}
}}
/>