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:
@@ -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'],
|
||||
|
Reference in New Issue
Block a user