add PO serializer

This commit is contained in:
Matthias 2022-03-11 00:34:16 +01:00
parent 2ae038a006
commit c69fdf90d9
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -272,6 +272,15 @@ class POLineItemSerializer(InvenTreeModelSerializer):
]
class POAdditionalLineItemSerializer(AbstractAdditionalLineItemSerializer, InvenTreeModelSerializer):
""" Serializer for a PurchaseOrderAdditionalLineItem object """
order_detail = POSerializer(source='order', many=False, read_only=True)
class Meta(AbstractAdditionalLineItemMeta):
model = order.models.PurchaseOrderAdditionalLineItem
class POLineItemReceiveSerializer(serializers.Serializer):
"""
A serializer for receiving a single purchase order line item against a purchase order