Hot: update document.py

This commit is contained in:
Rushabh Mehta 2014-07-09 09:05:14 +05:30
parent ca004130e0
commit e75c37a8be

View file

@ -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)