autoname added for Dev Sprint doctype

This commit is contained in:
Kenneth Sequeira
2018-10-10 17:14:01 +05:30
parent 6da3b4aa80
commit 6f485b4871

View File

@@ -5,6 +5,10 @@
from __future__ import unicode_literals
import frappe
from frappe.model.document import Document
from frappe.model.naming import make_autoname
class DeveloperSprint(Document):
pass
def autoname(self):
autoname = 'DEV-SPRINT-.YYYY.-.###'
self.name = make_autoname(autoname)