Include UID field in StockItem API
This commit is contained in:
parent
ba4a1fd771
commit
977316cb3a
|
|
@ -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',
|
||||
]
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue