bc4e2cd9c1
* [added] hospitality domain * [tests] wip * [tests] for restaurant * [fix] tests for new naming * [docs] added restaurant docs * [docs] added restaurant docs
27 lines
764 B
Python
27 lines
764 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"):
|
|
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():
|
|
domain = frappe.get_doc('Domain', 'Education')
|
|
domain.setup_domain()
|
|
else:
|
|
domain = frappe.get_doc('Domain', 'Manufacturing')
|
|
domain.setup_data()
|
|
domain.setup_sidebar_items()
|