def execute(): reload_doctypes_for_schools_icons() frappe.reload_doc('website', 'doctype', 'portal_settings') frappe.reload_doc('website', 'doctype', 'portal_menu_item') frappe.reload_doc('buying', 'doctype', 'request_for_quotation') if 'schools' in frappe.get_installed_apps(): frappe.get_doc('Portal Settings', 'Portal Settings').sync_menu() frappe.db.sql("""delete from `tabDesktop Icon`""") if not frappe.db.exists('Module Def', 'Schools'): frappe.get_doc({ 'doctype': 'Module Def', 'module_name': 'Schools', 'app_name': 'erpnext' }).insert() frappe.db.sql( """update `tabDocType` set module='Schools' where module='Academics'""" ) from frappe.installer import remove_from_installed_apps remove_from_installed_apps("schools") domainify.setup_domain('Education') else: frappe.get_doc('Portal Settings', 'Portal Settings').sync_menu() domainify.setup_sidebar_items(domainify.get_domain('Manufacturing'))
def execute(): for dt in ("assessment", "announcement", "course", "fees"): frappe.reload_doc("schools", "doctype", dt) frappe.get_doc('Portal Settings').sync_menu() if 'schools' in frappe.get_installed_apps(): domainify.setup_domain('Education') else: domainify.setup_sidebar_items(domainify.get_domain('Manufacturing'))
def execute(): frappe.reload_doctype('Role') for dt in ("assessment", "course", "fees"): frappe.reload_doc("schools", "doctype", dt) for dt in ("domain", "has_domain", "domain_settings"): frappe.reload_doc("core", "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: domainify.setup_sidebar_items(domainify.get_domain('Manufacturing'))
def execute(): reload_doctypes_for_schools_icons() frappe.reload_doc('website', 'doctype', 'portal_settings') frappe.reload_doc('website', 'doctype', 'portal_menu_item') frappe.reload_doc('buying', 'doctype', 'request_for_quotation') if 'schools' in frappe.get_installed_apps(): frappe.get_doc('Portal Settings', 'Portal Settings').sync_menu() frappe.db.sql("""delete from `tabDesktop Icon`""") if not frappe.db.exists('Module Def', 'Schools'): frappe.get_doc({ 'doctype': 'Module Def', 'module_name': 'Schools', 'app_name': 'erpnext' }).insert() frappe.db.sql("""update `tabDocType` set module='Schools' where module='Academics'""") from frappe.installer import remove_from_installed_apps remove_from_installed_apps("schools") domainify.setup_domain('Education') else: frappe.get_doc('Portal Settings', 'Portal Settings').sync_menu() domainify.setup_sidebar_items(domainify.get_domain('Manufacturing'))