diff --git a/InvenTree/stock/api.py b/InvenTree/stock/api.py index 7741c67129..ad2c46e8f3 100644 --- a/InvenTree/stock/api.py +++ b/InvenTree/stock/api.py @@ -440,6 +440,8 @@ class StockList(generics.ListCreateAPIView): params = self.request.query_params + queryset = super().filter_queryset(queryset) + # Perform basic filtering: # Note: We do not let DRF filter here, it be slow AF @@ -680,6 +682,13 @@ class StockList(generics.ListCreateAPIView): filter_fields = [ ] + search_fields = [ + 'serial', + 'part__name', + 'part__IPN', + 'part__description' + ] + class StockAttachmentList(generics.ListCreateAPIView, AttachmentMixin): """