From 174bba90abc28b72c77b524059e7cb379d1ae1b8 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 6 Mar 2022 23:49:36 +0100 Subject: [PATCH] total read only --- InvenTree/order/serializers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/InvenTree/order/serializers.py b/InvenTree/order/serializers.py index 100836889b..37437c97e3 100644 --- a/InvenTree/order/serializers.py +++ b/InvenTree/order/serializers.py @@ -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)