mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
[fix] [minor] quotation to sales order, if not able to create customer, show message
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user