2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-11-09 09:35:42 +00:00

Search stock items by supplier data (#10750)

* Search stock items by supplier data

* Search by MPN or Manufacturer

* Update API version
This commit is contained in:
Oliver
2025-11-03 15:03:50 +11:00
committed by GitHub
parent 0997a18a62
commit 153bcc1d5c
2 changed files with 10 additions and 2 deletions

View File

@@ -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

View File

@@ -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',
]