[minor] fix reload for school migrate patch

This commit is contained in:
Rushabh Mehta 2016-08-10 14:21:45 +05:30
parent aa12d30d5a
commit cc054a5bbc

View File

@ -21,7 +21,5 @@ def execute():
remove_from_installed_apps("schools") remove_from_installed_apps("schools")
def reload_doctypes_for_schools_icons(): def reload_doctypes_for_schools_icons():
for name in ('student', 'student_group', 'course_schedule', 'student_attendance', 'room', for d in frappe.get_all('DocType', filters={'module': 'Schools'}):
'program_enrollment', 'course', 'program', 'student_applicant', 'fees', frappe.reload_doc('schools', 'doctype', d.name)
'instructor', 'announcement'):
frappe.reload_doc('schools', 'doctype', name)