Fix ReturnOrder serializer (#4923)

- Add in missing fields
This commit is contained in:
Oliver 2023-05-30 21:00:03 +10:00 committed by GitHub
parent eca2172624
commit 0808382d06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1447,7 +1447,7 @@ class SalesOrderAttachmentSerializer(InvenTreeAttachmentSerializer):
]) ])
class ReturnOrderSerializer(AbstractOrderSerializer, InvenTreeModelSerializer): class ReturnOrderSerializer(AbstractOrderSerializer, TotalPriceMixin, InvenTreeModelSerializer):
"""Serializer for the ReturnOrder model class""" """Serializer for the ReturnOrder model class"""
class Meta: class Meta:
@ -1459,6 +1459,8 @@ class ReturnOrderSerializer(AbstractOrderSerializer, InvenTreeModelSerializer):
'customer', 'customer',
'customer_detail', 'customer_detail',
'customer_reference', 'customer_reference',
'order_currency',
'total_price',
]) ])
read_only_fields = [ read_only_fields = [