2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Add modal API form to allocate stock items against a SalesOrder

- Added model renderer for SalesOrderShipment
- Some refactorin'
This commit is contained in:
Oliver
2021-10-27 00:41:12 +11:00
parent bff9f0828a
commit 7252b299f7
5 changed files with 348 additions and 10 deletions

View File

@ -596,12 +596,15 @@ class SalesOrderShipmentSerializer(InvenTreeModelSerializer):
allocations = SalesOrderAllocationSerializer(many=True, read_only=True, location_detail=True)
order_detail = SalesOrderSerializer(source='order', read_only=True, many=False)
class Meta:
model = order.models.SalesOrderShipment
fields = [
'pk',
'order',
'order_detail',
'allocations',
'shipment_date',
'checked_by',