2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 13:10:57 +00:00

List PO/SO/BO by reference in API (#4083)

* API: Add filter by reference to SO, PO. Add filtering by customer to SO list

* API: Add filtering by reference to Build order list

* Add test for changes

* Increment API version

* Add test for BO reference

* Add missing description of API version
This commit is contained in:
miggland
2022-12-21 11:48:30 +01:00
committed by GitHub
parent 0e8563ebee
commit d4341e81f2
5 changed files with 59 additions and 3 deletions

View File

@ -65,6 +65,13 @@ class BuildFilter(rest_filters.FilterSet):
return queryset
# Exact match for reference
reference = rest_filters.CharFilter(
label='Filter by exact reference',
field_name='reference',
lookup_expr="iexact"
)
class BuildList(APIDownloadMixin, ListCreateAPI):
"""API endpoint for accessing a list of Build objects.