2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Adds API endpoint to allocate stock items against a SalesOrder

- SalesOrderAllocations are no longer created manually
- API endpoint performs data validation
- Multiple line items can be allocated at once
- Adds unit testing for new API endpoint
This commit is contained in:
Oliver
2021-10-26 23:51:36 +11:00
parent dd5eeb7c61
commit bff9f0828a
6 changed files with 437 additions and 113 deletions

View File

@ -422,7 +422,7 @@ class BuildAllocationSerializer(serializers.Serializer):
Validation
"""
super().validate(data)
data = super().validate(data)
items = data.get('items', [])