InvenTree/InvenTree/stock/admin.py
Oliver Walters 5d887f3785 Remove 'simple-history'
- Might re-add it later on
2019-04-18 21:28:09 +10:00

23 lines
652 B
Python

from django.contrib import admin
from import_export.admin import ImportExportModelAdmin
from .models import StockLocation, StockItem
from .models import StockItemTracking
class LocationAdmin(ImportExportModelAdmin):
list_display = ('name', 'pathstring', 'description')
class StockItemAdmin(ImportExportModelAdmin):
list_display = ('part', 'quantity', 'location', 'status', 'updated')
class StockTrackingAdmin(ImportExportModelAdmin):
list_display = ('item', 'date', 'title')
admin.site.register(StockLocation, LocationAdmin)
admin.site.register(StockItem, StockItemAdmin)
admin.site.register(StockItemTracking, StockTrackingAdmin)