2016-08-09 11:37:59 +00:00
|
|
|
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
|
|
# License: GNU General Public License v3. See license.txt
|
|
|
|
|
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
2016-12-19 07:45:52 +00:00
|
|
|
frappe.reload_doctype('Role')
|
2017-01-30 11:34:38 +00:00
|
|
|
for dt in ("assessment", "course", "fees"):
|
2017-11-23 09:52:10 +00:00
|
|
|
# 'Schools' module changed to the 'Education'
|
|
|
|
# frappe.reload_doc("schools", "doctype", dt)
|
|
|
|
frappe.reload_doc("education", "doctype", dt)
|
2016-10-07 11:23:07 +00:00
|
|
|
|
2017-07-17 08:14:56 +00:00
|
|
|
for dt in ("domain", "has_domain", "domain_settings"):
|
|
|
|
frappe.reload_doc("core", "doctype", dt)
|
|
|
|
|
2016-10-07 09:24:28 +00:00
|
|
|
frappe.reload_doc('website', 'doctype', 'portal_menu_item')
|
2016-10-07 11:23:07 +00:00
|
|
|
|
2016-08-09 11:37:59 +00:00
|
|
|
frappe.get_doc('Portal Settings').sync_menu()
|
2016-12-19 07:45:52 +00:00
|
|
|
|
2016-08-09 11:37:59 +00:00
|
|
|
if 'schools' in frappe.get_installed_apps():
|
2017-10-17 07:00:34 +00:00
|
|
|
domain = frappe.get_doc('Domain', 'Education')
|
|
|
|
domain.setup_domain()
|
2016-08-09 11:37:59 +00:00
|
|
|
else:
|
2017-10-17 07:00:34 +00:00
|
|
|
domain = frappe.get_doc('Domain', 'Manufacturing')
|
|
|
|
domain.setup_data()
|
|
|
|
domain.setup_sidebar_items()
|