[minor] fix reload for school migrate patch
This commit is contained in:
parent
aa12d30d5a
commit
cc054a5bbc
@ -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)
|
|
||||||
|
Loading…
Reference in New Issue
Block a user