diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index 0e11037392..a6b5bf6f38 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -779,6 +779,7 @@ class StockList(APIDownloadMixin, ListCreateDestroyAPIView): }) try: + Part.objects.prefetch_related(None) part = Part.objects.get(pk=data.get('part', None)) except (ValueError, Part.DoesNotExist): raise ValidationError({