Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
28846a7991
@ -78,7 +78,7 @@ class DocType:
|
|||||||
def validate_duplicate_account(self):
|
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)):
|
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: %s already exists, please rename"
|
msgprint("Account Name: %s already exists, please rename"
|
||||||
% self.doc.name, raise_exception=1)
|
% self.doc.account_name, raise_exception=1)
|
||||||
|
|
||||||
def validate_root_details(self):
|
def validate_root_details(self):
|
||||||
#does not exists parent
|
#does not exists parent
|
||||||
|
Loading…
Reference in New Issue
Block a user