From e75c37a8be9d171150eefd5709fd79fbf82fefc0 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 9 Jul 2014 09:05:14 +0530 Subject: [PATCH] Hot: update document.py --- frappe/model/document.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)