From a537e438384a29328c084bc2b336046f5b2832a4 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Thu, 21 Jul 2016 16:57:04 +0530 Subject: [PATCH] Fixed patch for migrating schools to erpnext again --- erpnext/patches/v7_0/migrate_schools_to_erpnext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v7_0/migrate_schools_to_erpnext.py b/erpnext/patches/v7_0/migrate_schools_to_erpnext.py index e89984423e..154847584e 100644 --- a/erpnext/patches/v7_0/migrate_schools_to_erpnext.py +++ b/erpnext/patches/v7_0/migrate_schools_to_erpnext.py @@ -6,7 +6,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'""") + frappe.db.sql("""update `tabDocType` set module='Schools' where module='Academics'""") from frappe.installer import remove_from_installed_apps remove_from_installed_apps("schools") domainify.setup_domain('Education')