2
0
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:
Oliver
2025-10-13 09:47:42 +11:00
committed by GitHub
parent 6327707c0e
commit 022c48f2d3
2 changed files with 9 additions and 1 deletions

View File

@@ -1,12 +1,15 @@
"""InvenTree API version information."""
# 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."""
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
- Breaking: Set error status code for plugin action call instead of just returning error data

View File

@@ -1639,6 +1639,11 @@ class BomList(
search_fields = [
'reference',
'part__name',
'part__description',
'part__IPN',
'part__revision',
'part__keywords',
'sub_part__name',
'sub_part__description',
'sub_part__IPN',