diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py index f872c0c2b6..2a4e0147ba 100644 --- a/InvenTree/order/serializers.py +++ b/InvenTree/order/serializers.py @@ -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