mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
Merge pull request #326 from kennethsequeira/dev-sprint
autoname added for Dev Sprint doctype
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user