mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
added validation that abbreviation should not be more than 5 characters when creating company
This commit is contained in:
@@ -38,6 +38,11 @@ class DocType:
|
|||||||
def __init__(self,d,dl):
|
def __init__(self,d,dl):
|
||||||
self.doc, self.doclist = d,dl
|
self.doc, self.doclist = d,dl
|
||||||
|
|
||||||
|
def validate(self):
|
||||||
|
if self.doc.__islocal and len(self.doc.abbr) > 5:
|
||||||
|
webnotes.msgprint("Abbreviation cannot have more than 5 characters",
|
||||||
|
raise_exception=1)
|
||||||
|
|
||||||
# Create default accounts
|
# Create default accounts
|
||||||
# ---------------------------------------------------
|
# ---------------------------------------------------
|
||||||
def create_default_accounts(self):
|
def create_default_accounts(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user