From d267d04bed8968c8097c5bbfaacebdb87bc43f61 Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 23 Aug 2021 21:43:31 +1000 Subject: [PATCH] Allow validation of empty money values --- InvenTree/InvenTree/serializers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/serializers.py b/InvenTree/InvenTree/serializers.py index e125c234ce..4cea0a218c 100644 --- a/InvenTree/InvenTree/serializers.py +++ b/InvenTree/InvenTree/serializers.py @@ -46,7 +46,7 @@ class InvenTreeMoneySerializer(MoneyField): amount = None try: - if amount is not None: + if amount is not None and amount is not empty: amount = Decimal(amount) except: raise ValidationError({