From 0808382d06cc0620a62f8da37f64330f6eead812 Mon Sep 17 00:00:00 2001 From: Oliver Date: Tue, 30 May 2023 21:00:03 +1000 Subject: [PATCH] Fix ReturnOrder serializer (#4923) - Add in missing fields --- InvenTree/order/serializers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py index 64ca1aaf32..f8c3c0dcc4 100644 --- a/InvenTree/order/serializers.py +++ b/InvenTree/order/serializers.py @@ -1447,7 +1447,7 @@ class SalesOrderAttachmentSerializer(InvenTreeAttachmentSerializer): ]) -class ReturnOrderSerializer(AbstractOrderSerializer, InvenTreeModelSerializer): +class ReturnOrderSerializer(AbstractOrderSerializer, TotalPriceMixin, InvenTreeModelSerializer): """Serializer for the ReturnOrder model class""" class Meta: @@ -1459,6 +1459,8 @@ class ReturnOrderSerializer(AbstractOrderSerializer, InvenTreeModelSerializer): 'customer', 'customer_detail', 'customer_reference', + 'order_currency', + 'total_price', ]) read_only_fields = [