mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
parent
0f51127adf
commit
5f3932b7e1
@ -1595,7 +1595,9 @@ class PartParameterList(PartParameterAPIMixin, ListCreateAPI):
|
||||
|
||||
ordering_field_aliases = {
|
||||
'name': 'template__name',
|
||||
'units': 'template__units',
|
||||
'data': ['data_numeric', 'data'],
|
||||
'part': 'part__name',
|
||||
}
|
||||
|
||||
search_fields = [
|
||||
|
@ -44,6 +44,7 @@ export function PartParameterTable({ partId }: { partId: any }) {
|
||||
accessor: 'template_detail.name',
|
||||
switchable: false,
|
||||
sortable: true,
|
||||
ordering: 'name',
|
||||
render: (record) => {
|
||||
let variant = String(partId) != String(record.part);
|
||||
|
||||
@ -75,7 +76,8 @@ export function PartParameterTable({ partId }: { partId: any }) {
|
||||
},
|
||||
{
|
||||
accessor: 'template_detail.units',
|
||||
sortable: false
|
||||
ordering: 'units',
|
||||
sortable: true
|
||||
}
|
||||
];
|
||||
}, [partId]);
|
||||
|
Loading…
Reference in New Issue
Block a user