Bug fix for sorting of sales orders

This commit is contained in:
Oliver Walters 2021-03-03 08:32:57 +11:00
parent 558ea98fa1
commit 339a02a6b2
2 changed files with 3 additions and 1 deletions

View File

@ -362,8 +362,9 @@ class SOList(generics.ListCreateAPIView):
ordering_fields = [ ordering_fields = [
'creation_date', 'creation_date',
'reference' 'reference',
'customer__name', 'customer__name',
'customer_reference',
'status', 'status',
'target_date', 'target_date',
'line_items', 'line_items',

View File

@ -270,6 +270,7 @@ function loadSalesOrderTable(table, options) {
} }
}, },
{ {
sortable: true,
field: 'customer_reference', field: 'customer_reference',
title: '{% trans "Customer Reference" %}', title: '{% trans "Customer Reference" %}',
}, },