Fixed patch for migrating schools to erpnext
diff --git a/erpnext/patches/v7_0/migrate_schools_to_erpnext.py b/erpnext/patches/v7_0/migrate_schools_to_erpnext.py
index ca37e69..e899844 100644
--- a/erpnext/patches/v7_0/migrate_schools_to_erpnext.py
+++ b/erpnext/patches/v7_0/migrate_schools_to_erpnext.py
@@ -5,6 +5,7 @@
def execute():
frappe.get_doc('Portal Settings', 'Portal Settings').sync_menu()
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'""")
from frappe.installer import remove_from_installed_apps
remove_from_installed_apps("schools")