made naming series mandatory in JV
This commit is contained in:
parent
5e1a16c95c
commit
70d32da9fd
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user