Include UID field in StockItem API

This commit is contained in:
Oliver Walters committed 2020-04-14 22:57:46 +10:00
1 parent ba4a1fd771
commit 977316cb3a
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -344,6 +344,7 @@ class StockList(generics.ListCreateAPIView):
data = queryset.values(
'pk',
'uid',
'parent',
'quantity',
'serial',
@@ -540,7 +541,7 @@ class StockList(generics.ListCreateAPIView):
'supplier_part',
'customer',
'belongs_to',
'build'
'build',
]
+2
View File
@@ -39,6 +39,7 @@ class StockItemSerializerBrief(InvenTreeModelSerializer):
model = StockItem
fields = [
'pk',
'uid',
'part',
'part_name',
'supplier_part',
@@ -106,6 +107,7 @@ class StockItemSerializer(InvenTreeModelSerializer):
'status',
'status_text',
'tracking_items',
'uid',
'url',
]