mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-30 18:50:53 +00:00
Add some more search terms to the admin interface
This commit is contained in:
@ -117,6 +117,13 @@ class StockItemAdmin(ImportExportModelAdmin):
|
||||
|
||||
list_display = ('part', 'quantity', 'location', 'status', 'updated')
|
||||
|
||||
# A list of search fields which can be used for lookup on matching 'autocomplete' fields
|
||||
search_fields = [
|
||||
'part__name',
|
||||
'part__description',
|
||||
'serial',
|
||||
'batch',
|
||||
]
|
||||
|
||||
class StockAttachmentAdmin(admin.ModelAdmin):
|
||||
|
||||
|
Reference in New Issue
Block a user