mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Bug fix for BuildOutputComplete serializer
- Actually use the provided "location" value!
This commit is contained in:
parent
44008f33e2
commit
ab82f07ef1
@ -404,6 +404,10 @@ class BuildOutputCompleteSerializer(serializers.Serializer):
|
|||||||
|
|
||||||
data = self.validated_data
|
data = self.validated_data
|
||||||
|
|
||||||
|
location = data['location']
|
||||||
|
status = data['status']
|
||||||
|
notes = data.get('notes', '')
|
||||||
|
|
||||||
outputs = data.get('outputs', [])
|
outputs = data.get('outputs', [])
|
||||||
|
|
||||||
# Mark the specified build outputs as "complete"
|
# Mark the specified build outputs as "complete"
|
||||||
@ -415,8 +419,9 @@ class BuildOutputCompleteSerializer(serializers.Serializer):
|
|||||||
build.complete_build_output(
|
build.complete_build_output(
|
||||||
output,
|
output,
|
||||||
request.user,
|
request.user,
|
||||||
status=data['status'],
|
location=location,
|
||||||
notes=data.get('notes', '')
|
status=status,
|
||||||
|
notes=notes,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user