2
0
mirror of https://github.com/inventree/InvenTree.git synced 2026-05-01 23:34:41 +00:00

Allow validation of empty money values

This commit is contained in:
Oliver
2021-08-23 21:43:31 +10:00
parent f96051d863
commit d267d04bed
+1 -1
View File
@@ -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({