removed & and , validation in autoname

This commit is contained in:
root 2011-06-13 19:12:14 +05:30
parent 8545e11c76
commit 6be68dd332

2
cgi-bin/webnotes/model/doc.py Normal file → Executable file
View file

@ -227,7 +227,7 @@ class Document:
self.name = self.name.strip() # no leading and trailing blanks
forbidden = ['%', "'", '"', ',', '#', '*', '?', '&', '`']
forbidden = ['%', "'", '"', '#', '*', '?', '`']
for f in forbidden:
if f in self.name:
webnotes.msgprint('%s not allowed in ID (name)' % f, raise_exception =1)