Update set_portal_settings.py
This commit is contained in:
parent
eb08d632b3
commit
20e96b77bd
@ -9,10 +9,12 @@ from erpnext.setup.setup_wizard import domainify
|
|||||||
def execute():
|
def execute():
|
||||||
for dt in ("assessment", "announcement", "course", "fees"):
|
for dt in ("assessment", "announcement", "course", "fees"):
|
||||||
frappe.reload_doc("schools", "doctype", dt)
|
frappe.reload_doc("schools", "doctype", dt)
|
||||||
|
|
||||||
|
frappe.reload_doc('website', 'doctype', 'portal_menu_item')
|
||||||
|
|
||||||
frappe.get_doc('Portal Settings').sync_menu()
|
frappe.get_doc('Portal Settings').sync_menu()
|
||||||
|
|
||||||
if 'schools' in frappe.get_installed_apps():
|
if 'schools' in frappe.get_installed_apps():
|
||||||
domainify.setup_domain('Education')
|
domainify.setup_domain('Education')
|
||||||
else:
|
else:
|
||||||
domainify.setup_sidebar_items(domainify.get_domain('Manufacturing'))
|
domainify.setup_sidebar_items(domainify.get_domain('Manufacturing'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user