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 information."""
|
||||||
|
|
||||||
# InvenTree API version
|
# 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."""
|
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
|
||||||
|
|
||||||
INVENTREE_API_TEXT = """
|
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
|
v421 -> 2025-10-31 : https://github.com/inventree/InvenTree/pull/10724
|
||||||
- Allow upload of attachments against SupplierPart objects via the API
|
- Allow upload of attachments against SupplierPart objects via the API
|
||||||
|
|
||||||
|
|||||||
@@ -1290,10 +1290,14 @@ class StockList(
|
|||||||
search_fields = [
|
search_fields = [
|
||||||
'serial',
|
'serial',
|
||||||
'batch',
|
'batch',
|
||||||
|
'location__name',
|
||||||
'part__name',
|
'part__name',
|
||||||
'part__IPN',
|
'part__IPN',
|
||||||
'part__description',
|
'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__name',
|
||||||
'tags__slug',
|
'tags__slug',
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user