minor fixes

This commit is contained in:
Anand Doshi
2012-11-30 19:45:51 +05:30
parent d8b85073cd
commit 9021ef75d1
3 changed files with 3 additions and 6 deletions

View File

@@ -107,8 +107,7 @@ class DocType(TransactionBase):
#validation for Naming Series mandatory field...
if get_defaults()['supp_master_name'] == 'Naming Series':
if not self.doc.naming_series:
msgprint("Series is Mandatory.")
raise Exception
msgprint("Series is Mandatory.", raise_exception=1)
def create_account_head(self):
if self.doc.company :