2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-09-16 23:51:30 +00:00

Add unit tests for the auto_allocate_stock method

This commit is contained in:
Oliver
2022-03-04 16:27:50 +11:00
parent 71cd6c93d1
commit 0bb0047fcd
3 changed files with 119 additions and 10 deletions

View File

@@ -746,11 +746,9 @@ class BuildAutoAllocationSerializer(serializers.Serializer):
data = self.validated_data
request = self.context['request']
build = self.context['build']
build.auto_allocate_stock(
request.user,
location=data.get('location', None),
interchangeable=data['interchangeable'],
substitutes=data['substitutes'],