2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-22 01:06:50 +00:00

[feature] Bulk replace (#11861)

* Allow bulk replace of BOM items

* Add "locked" filter for UsedIn table

* Add playwright tests

* docs

* Bump API version

* Update CHANGELOG

* Update api_version.py

---------

Co-authored-by: Matthias Mair <code@mjmair.com>
This commit is contained in:
Oliver
2026-05-04 23:13:23 +10:00
committed by GitHub
parent 118bc63b6b
commit 00d6f1c3ab
7 changed files with 125 additions and 9 deletions
@@ -1,11 +1,14 @@
"""InvenTree API version information."""
# InvenTree API version
INVENTREE_API_VERSION = 482
INVENTREE_API_VERSION = 483
"""Increment this API version number whenever there is a significant change to the API that any clients need to know about."""
INVENTREE_API_TEXT = """
v483 -> 2026-05-04 : https://github.com/inventree/InvenTree/pull/11861
- Enable bulk-update operations on the BomItem API endpoint, allowing multiple BOM items to be updated in a single API call
v482 -> 2026-03-15 : https://github.com/inventree/InvenTree/pull/11540
- Add id to the ordering fields of the Parts model
+9 -1
View File
@@ -1290,6 +1290,10 @@ class BomFilter(FilterSet):
label=_('Assembly part is testable'), field_name='part__testable'
)
part_locked = rest_filters.BooleanFilter(
label=_('Assembly part is locked'), field_name='part__locked'
)
# Filters for linked 'sub_part'
sub_part_active = rest_filters.BooleanFilter(
label=_('Component part is active'), field_name='sub_part__active'
@@ -1406,7 +1410,11 @@ class BomOutputOptions(OutputConfiguration):
class BomList(
BomMixin, DataExportViewMixin, OutputOptionsMixin, ListCreateDestroyAPIView
BomMixin,
BulkUpdateMixin,
DataExportViewMixin,
OutputOptionsMixin,
ListCreateDestroyAPIView,
):
"""API endpoint for accessing a list of BomItem objects.