diff --git a/InvenTree/stock/serializers.py b/InvenTree/stock/serializers.py index 91d9e03016..bde9b2b25b 100644 --- a/InvenTree/stock/serializers.py +++ b/InvenTree/stock/serializers.py @@ -104,12 +104,14 @@ class StockItemSerializer(InvenTreeModelSerializer): location_detail = LocationBriefSerializer(source='location', many=False, read_only=True) supplier_part_detail = SupplierPartSerializer(source='supplier_part', many=False, read_only=True) - tracking_items = serializers.IntegerField(source='tracking_info_count') + tracking_items = serializers.IntegerField(source='tracking_info_count', read_only=True, required=False) quantity = serializers.FloatField() - allocated = serializers.FloatField(source='allocation_count') + allocated = serializers.FloatField(source='allocation_count', required=False) - required_tests = serializers.IntegerField(source='required_test_count', read_only=True) + serial = serializers.IntegerField(required=False) + + required_tests = serializers.IntegerField(source='required_test_count', read_only=True, required=False) def __init__(self, *args, **kwargs):