diff --git a/erpnext/patches/v7_0/set_portal_settings.py b/erpnext/patches/v7_0/set_portal_settings.py index d9b6400260..f7ee20597b 100644 --- a/erpnext/patches/v7_0/set_portal_settings.py +++ b/erpnext/patches/v7_0/set_portal_settings.py @@ -7,13 +7,14 @@ import frappe from erpnext.setup.setup_wizard import domainify def execute(): + frappe.reload_doctype('Role') for dt in ("assessment", "announcement", "course", "fees"): frappe.reload_doc("schools", "doctype", dt) frappe.reload_doc('website', 'doctype', 'portal_menu_item') frappe.get_doc('Portal Settings').sync_menu() - + if 'schools' in frappe.get_installed_apps(): domainify.setup_domain('Education') else: