mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 12:35:46 +00:00
Add purchase order and sales order to search results
This commit is contained in:
@ -137,6 +137,13 @@ class POList(generics.ListCreateAPIView):
|
||||
'supplier',
|
||||
]
|
||||
|
||||
search_fields = [
|
||||
'reference',
|
||||
'supplier__name',
|
||||
'supplier_reference',
|
||||
'description',
|
||||
]
|
||||
|
||||
ordering_fields = [
|
||||
'creation_date',
|
||||
'reference',
|
||||
@ -356,6 +363,18 @@ class SOList(generics.ListCreateAPIView):
|
||||
ordering_fields = [
|
||||
'creation_date',
|
||||
'reference'
|
||||
'customer__name',
|
||||
'status',
|
||||
'target_date',
|
||||
'line_items',
|
||||
'shipment_date',
|
||||
]
|
||||
|
||||
search_fields = [
|
||||
'customer__name',
|
||||
'reference',
|
||||
'description',
|
||||
'customer_reference',
|
||||
]
|
||||
|
||||
ordering = '-creation_date'
|
||||
|
Reference in New Issue
Block a user