mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-20 15:05:12 +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:
1 parent
189948be06
commit
1017ff0605
7 files changed
+69
-10
No files matched your search
@@ -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