mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add StockItemTestResult to the admin interface
This commit is contained in:
parent
df91b8cf4d
commit
880a0a4af8
@ -10,6 +10,7 @@ import import_export.widgets as widgets
|
||||
|
||||
from .models import StockLocation, StockItem, StockItemAttachment
|
||||
from .models import StockItemTracking
|
||||
from .models import StockItemTestResult
|
||||
|
||||
from build.models import Build
|
||||
from company.models import SupplierPart
|
||||
@ -117,7 +118,13 @@ class StockTrackingAdmin(ImportExportModelAdmin):
|
||||
list_display = ('item', 'date', 'title')
|
||||
|
||||
|
||||
class StockItemTestResultAdmin(admin.ModelAdmin):
|
||||
|
||||
list_display = ('stock_item', 'test', 'result', 'value')
|
||||
|
||||
|
||||
admin.site.register(StockLocation, LocationAdmin)
|
||||
admin.site.register(StockItem, StockItemAdmin)
|
||||
admin.site.register(StockItemTracking, StockTrackingAdmin)
|
||||
admin.site.register(StockItemAttachment, StockAttachmentAdmin)
|
||||
admin.site.register(StockItemTestResult, StockItemTestResultAdmin)
|
||||
|
Loading…
Reference in New Issue
Block a user