diff --git a/frappe/model/document.py b/frappe/model/document.py index c92d45e3f2..296173aa74 100644 --- a/frappe/model/document.py +++ b/frappe/model/document.py @@ -504,7 +504,7 @@ class Document(BaseDocument): if doc.parentfield: msg = _("Incorrect value in row {0}: {1} must be {2} {3}".format(doc.idx, label, condition_str, val2)) else: - msg = _("Incorrect value: {1} must be {2} {3}".format(label, condition_str, val2)) + msg = _("Incorrect value: {0} must be {1} {2}".format(label, condition_str, val2)) # raise passed exception or True msgprint(msg, raise_exception=raise_exception or True)