mirror of
https://github.com/inventree/InvenTree.git
synced 2025-10-14 21:22:20 +00:00
[API] Allow search of assembly fields in BOM API endpoint (#10561)
* [API] Allow search of assembly fields in BOM API endpoint - Required so we can search the "used in" table * Bump API version
This commit is contained in:
@@ -1,12 +1,15 @@
|
|||||||
"""InvenTree API version information."""
|
"""InvenTree API version information."""
|
||||||
|
|
||||||
# InvenTree API version
|
# InvenTree API version
|
||||||
INVENTREE_API_VERSION = 407
|
INVENTREE_API_VERSION = 408
|
||||||
|
|
||||||
"""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 = """
|
||||||
|
|
||||||
|
v408 -> 2025-10-13: https://github.com/inventree/InvenTree/pull/10561
|
||||||
|
- Allow search of assembly fields in BOM API endpoint
|
||||||
|
|
||||||
v407 -> 2025-10-09: https://github.com/inventree/InvenTree/pull/10538
|
v407 -> 2025-10-09: https://github.com/inventree/InvenTree/pull/10538
|
||||||
- Breaking: Set error status code for plugin action call instead of just returning error data
|
- Breaking: Set error status code for plugin action call instead of just returning error data
|
||||||
|
|
||||||
|
@@ -1639,6 +1639,11 @@ class BomList(
|
|||||||
|
|
||||||
search_fields = [
|
search_fields = [
|
||||||
'reference',
|
'reference',
|
||||||
|
'part__name',
|
||||||
|
'part__description',
|
||||||
|
'part__IPN',
|
||||||
|
'part__revision',
|
||||||
|
'part__keywords',
|
||||||
'sub_part__name',
|
'sub_part__name',
|
||||||
'sub_part__description',
|
'sub_part__description',
|
||||||
'sub_part__IPN',
|
'sub_part__IPN',
|
||||||
|
Reference in New Issue
Block a user