brotherton-erpnext/erpnext/patches/v7_0/set_portal_settings.py

21 lines
629 B
Python
Raw Normal View History

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
from erpnext.setup.setup_wizard import domainify
def execute():
for dt in ("assessment", "announcement", "course", "fees"):
frappe.reload_doc("schools", "doctype", dt)
2016-10-07 11:23:07 +00:00
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()
if 'schools' in frappe.get_installed_apps():
domainify.setup_domain('Education')
else:
2016-10-07 09:24:28 +00:00
domainify.setup_sidebar_items(domainify.get_domain('Manufacturing'))