[fix] [minor] quotation to sales order, if not able to create customer, show message

This commit is contained in:
Anand Doshi
2013-09-03 15:34:24 +05:30
parent 36b63a44b9
commit 627c42bdb6
2 changed files with 5 additions and 3 deletions

View File

@@ -40,8 +40,7 @@ class DocType(TransactionBase):
def validate_values(self):
if webnotes.defaults.get_global_default('cust_master_name') == 'Naming Series' and not self.doc.naming_series:
msgprint("Series is Mandatory.")
raise Exception
webnotes.throw("Series is Mandatory.", webnotes.MandatoryError)
def validate(self):
self.validate_values()