[minor] demo and item

This commit is contained in:
Anand Doshi
2013-11-29 14:53:56 +05:30
parent 974203b1f3
commit da07ed0ae8
2 changed files with 8 additions and 7 deletions

View File

@@ -207,6 +207,7 @@ class DocType(DocListController, WebsiteGenerator):
return sle and 'exists' or 'not exists'
def validate_name_with_item_group(self):
# causes problem with tree build
if webnotes.conn.exists("Item Group", self.doc.name):
webnotes.msgprint("An item group exists with same name (%s), \
please change the item name or rename the item group" %