[fix] No module namd student_batch_name.student_batch_name error in the patch (#10745)

This commit is contained in:
rohitwaghchaure 2017-09-12 11:25:02 +05:30 committed by Nabin Hait
parent e5716e3b1e
commit 38830e54d8

View File

@ -9,7 +9,8 @@ from frappe.model.mapper import get_mapped_doc
def execute():
# for converting student batch into student group
for doctype in ["Student Group", "Student Group Student", "Student Group Instructor", "Student Attendance", "Student"]:
for doctype in ["Student Group", "Student Group Student",
"Student Group Instructor", "Student Attendance", "Student", "Student Batch Name"]:
frappe.reload_doc("schools", "doctype", frappe.scrub(doctype))
if frappe.db.table_exists("Student Batch"):