total read only

This commit is contained in:
Matthias 2022-03-06 23:49:36 +01:00
parent e2f54880f0
commit 174bba90ab
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -517,7 +517,8 @@ class SalesOrderSerializer(ReferenceIndexingSerializerMixin, InvenTreeModelSeria
total_price = InvenTreeMoneySerializer(
source='get_total_price',
allow_null=True
allow_null=True,
read_only=True,
)
total_price_string = serializers.CharField(source='get_total_price', read_only=True)