mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-23 08:38:30 +00:00
made naming series mandatory in JV
This commit is contained in:
@@ -43,6 +43,9 @@ class DocType:
|
||||
self.is_approving_authority = -1
|
||||
|
||||
def autoname(self):
|
||||
if not self.doc.naming_series:
|
||||
webnotes.msgprint("""Naming Series is mandatory""", raise_exception=1)
|
||||
|
||||
self.doc.name = make_autoname(self.doc.naming_series+'.#####')
|
||||
|
||||
def get_outstanding(self, args):
|
||||
|
||||
Reference in New Issue
Block a user