feat: lesson assignment renamed to lms assignment submission
This commit is contained in:
13
lms/patches/v1_0/rename_assignment_doctype.py
Normal file
13
lms/patches/v1_0/rename_assignment_doctype.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import frappe
|
||||
from frappe.model.rename_doc import rename_doc
|
||||
|
||||
|
||||
def execute():
|
||||
if frappe.db.exists("DocType", "LMS Assignment Submission"):
|
||||
return
|
||||
|
||||
frappe.flags.ignore_route_conflict_validation = True
|
||||
rename_doc("DocType", "Lesson Assignment", "LMS Assignment Submission")
|
||||
frappe.flags.ignore_route_conflict_validation = False
|
||||
|
||||
frappe.reload_doctype("LMS Assignment Submission", force=True)
|
||||
Reference in New Issue
Block a user