Beispiel #1
0
def execute():
    if 'knowledge_base' in frappe.get_installed_apps():
        frappe.reload_doc('website', 'doctype', 'help_category')
        frappe.reload_doc('website', 'doctype', 'help_article')
        update_routes(['Help Category', 'Help Article'])
        remove_from_installed_apps('knowledge_base')

        # remove module def
        if frappe.db.exists('Module Def', 'Knowledge Base'):
            frappe.delete_doc('Module Def', 'Knowledge Base')

        # set missing routes
        for doctype in ('Help Category', 'Help Article'):
            for d in frappe.get_all(doctype, fields=['name', 'route']):
                if not d.route:
                    doc = frappe.get_doc(doctype, d.name)
                    doc.set_route()
                    doc.db_update()
Beispiel #2
0
def execute():
	if 'knowledge_base' in frappe.get_installed_apps():
		frappe.reload_doc('website', 'doctype', 'help_category')
		frappe.reload_doc('website', 'doctype', 'help_article')
		update_routes(['Help Category', 'Help Article'])
		remove_from_installed_apps('knowledge_base')

		# remove desktop icon
		desktop_icon_name = frappe.db.get_value('Desktop Icon',
			dict(module_name='Knowledge Base', type='module'))
		if desktop_icon_name:
			frappe.delete_doc('Desktop Icon', desktop_icon_name)

		# remove module def
		if frappe.db.exists('Module Def', 'Knowledge Base'):
			frappe.delete_doc('Module Def', 'Knowledge Base')

		# set missing routes
		for doctype in ('Help Category', 'Help Article'):
			for d in frappe.get_all(doctype, fields=['name', 'route']):
				if not d.route:
					doc = frappe.get_doc(doctype, d.name)
					doc.set_route()
					doc.db_update()
Beispiel #3
0
def execute():
    update_routes(['Item', 'Item Group', 'Sales Partner', 'Job Opening'])
def execute():
    update_routes(['Frappe Job', 'Frappe Partner', 'Frappe Job Bid'])
Beispiel #5
0
def execute():
	update_routes(['Item', 'Item Group', 'Sales Partner', 'Job Opening'])
Beispiel #6
0
def execute():
    update_routes(["Item", "Item Group", "Sales Partner", "Job Opening"])