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:
@@ -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
|
||||
|
||||
|
||||
@@ -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',
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user