diff --git a/src/backend/InvenTree/InvenTree/api_version.py b/src/backend/InvenTree/InvenTree/api_version.py index c4735f7e94..d003dcaba0 100644 --- a/src/backend/InvenTree/InvenTree/api_version.py +++ b/src/backend/InvenTree/InvenTree/api_version.py @@ -1,11 +1,15 @@ """InvenTree API version information.""" # InvenTree API version -INVENTREE_API_VERSION = 421 +INVENTREE_API_VERSION = 422 """Increment this API version number whenever there is a significant change to the API that any clients need to know about.""" INVENTREE_API_TEXT = """ +v422 -> 2025-11-03 : https://github.com/inventree/InvenTree/pull/10750 + - Adds ability to search StockItem API by supplier SKU + - Adds ability to search StockItem API by manufacturer MPN + v421 -> 2025-10-31 : https://github.com/inventree/InvenTree/pull/10724 - Allow upload of attachments against SupplierPart objects via the API diff --git a/src/backend/InvenTree/stock/api.py b/src/backend/InvenTree/stock/api.py index b06151d259..6b752f0a9a 100644 --- a/src/backend/InvenTree/stock/api.py +++ b/src/backend/InvenTree/stock/api.py @@ -1290,10 +1290,14 @@ class StockList( search_fields = [ 'serial', 'batch', + 'location__name', 'part__name', 'part__IPN', 'part__description', - 'location__name', + 'supplier_part__SKU', + 'supplier_part__supplier__name', + 'supplier_part__manufacturer_part__MPN', + 'supplier_part__manufacturer_part__manufacturer__name', 'tags__name', 'tags__slug', ]