966f141f62
* renaming for the docs, demo data and patch * changes in the doctypes and reports * rename the config file * Few name changes in messages and license * rename the school settings to education settings * changes in the documentation * added the setup file for the fixtures * corrected the ui tests file path * fix the codacy * add the patch for renaming few doctypes and fields * changes in the patch
29 lines
862 B
Python
29 lines
862 B
Python
# 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():
|
|
frappe.reload_doctype('Role')
|
|
for dt in ("assessment", "course", "fees"):
|
|
# 'Schools' module changed to the 'Education'
|
|
# frappe.reload_doc("schools", "doctype", dt)
|
|
frappe.reload_doc("education", "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():
|
|
domain = frappe.get_doc('Domain', 'Education')
|
|
domain.setup_domain()
|
|
else:
|
|
domain = frappe.get_doc('Domain', 'Manufacturing')
|
|
domain.setup_data()
|
|
domain.setup_sidebar_items()
|