From f05d045fca3b403454fb82de4ce9258ef124a43d Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 6 Nov 2012 16:31:42 +0530 Subject: [PATCH] Validation message changed --- accounts/doctype/account/account.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/accounts/doctype/account/account.py b/accounts/doctype/account/account.py index cc4c449994..fc73e7a477 100644 --- a/accounts/doctype/account/account.py +++ b/accounts/doctype/account/account.py @@ -77,7 +77,8 @@ class DocType: # Account name must be unique def validate_duplicate_account(self): if (self.doc.fields.get('__islocal') or (not self.doc.name)) and sql("select name from tabAccount where account_name=%s and company=%s", (self.doc.account_name, self.doc.company)): - msgprint("Account Name already exists, please rename", raise_exception=1) + msgprint("Account Name: %s already exists, please rename" + % self.doc.name, raise_exception=1) def validate_root_details(self): #does not exists parent