mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixes for build order table
This commit is contained in:
parent
4a28fa7fa8
commit
14000517ce
@ -38,6 +38,22 @@ class BuildList(generics.ListCreateAPIView):
|
|||||||
'sales_order',
|
'sales_order',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
ordering_fields = [
|
||||||
|
'reference',
|
||||||
|
'part__name',
|
||||||
|
'status',
|
||||||
|
'creation_date',
|
||||||
|
'target_date',
|
||||||
|
'completion_date',
|
||||||
|
'quantity',
|
||||||
|
]
|
||||||
|
|
||||||
|
search_fields = [
|
||||||
|
'reference',
|
||||||
|
'part__name',
|
||||||
|
'description',
|
||||||
|
]
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
"""
|
"""
|
||||||
Override the queryset filtering,
|
Override the queryset filtering,
|
||||||
|
@ -671,12 +671,12 @@ function loadBuildTable(table, options) {
|
|||||||
{
|
{
|
||||||
field: 'title',
|
field: 'title',
|
||||||
title: '{% trans "Description" %}',
|
title: '{% trans "Description" %}',
|
||||||
sortable: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'part',
|
field: 'part',
|
||||||
title: '{% trans "Part" %}',
|
title: '{% trans "Part" %}',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
|
sortName: 'part__name',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
|
|
||||||
var html = imageHoverIcon(row.part_detail.thumbnail);
|
var html = imageHoverIcon(row.part_detail.thumbnail);
|
||||||
|
@ -54,7 +54,6 @@ function loadCompanyTable(table, url, options={}) {
|
|||||||
{
|
{
|
||||||
field: 'description',
|
field: 'description',
|
||||||
title: '{% trans "Description" %}',
|
title: '{% trans "Description" %}',
|
||||||
sortable: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'website',
|
field: 'website',
|
||||||
|
Loading…
Reference in New Issue
Block a user