Merge pull request #5818 from neilLasrado/develop

Fixed patch for migrating schools to erpnext
This commit is contained in:
Rushabh Mehta 2016-07-21 16:43:40 +05:30 committed by GitHub
commit 5f7727424e

View File

@ -5,6 +5,7 @@ from erpnext.setup.setup_wizard import domainify
def execute(): def execute():
frappe.get_doc('Portal Settings', 'Portal Settings').sync_menu() frappe.get_doc('Portal Settings', 'Portal Settings').sync_menu()
if 'schools' in frappe.get_installed_apps(): if 'schools' in frappe.get_installed_apps():
frappe.db.sql("""delete from `tabDesktop Icon`""")
frappe.db.sql("""update `tabDoctype` set module='Schools' where module='Academics'""") frappe.db.sql("""update `tabDoctype` set module='Schools' where module='Academics'""")
from frappe.installer import remove_from_installed_apps from frappe.installer import remove_from_installed_apps
remove_from_installed_apps("schools") remove_from_installed_apps("schools")