mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 23:52:57 +00:00
made naming series mandatory in JV
This commit is contained in:
@@ -43,6 +43,9 @@ class DocType:
|
|||||||
self.is_approving_authority = -1
|
self.is_approving_authority = -1
|
||||||
|
|
||||||
def autoname(self):
|
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+'.#####')
|
self.doc.name = make_autoname(self.doc.naming_series+'.#####')
|
||||||
|
|
||||||
def get_outstanding(self, args):
|
def get_outstanding(self, args):
|
||||||
|
|||||||
Reference in New Issue
Block a user