fix: Remove Scheduling Tool if exists (#17473)
* fix: scheduling tool
* fix: patch for scheduling tool
* fix: remve drop table
diff --git a/erpnext/patches.txt b/erpnext/patches.txt
index 97ad26e..01270e4 100644
--- a/erpnext/patches.txt
+++ b/erpnext/patches.txt
@@ -600,3 +600,4 @@
erpnext.patches.v11_1.set_salary_details_submittable
erpnext.patches.v11_1.rename_depends_on_lwp
execute:frappe.delete_doc("Report", "Inactive Items")
+erpnext.patches.v11_1.delete_scheduling_tool
diff --git a/erpnext/patches/v11_1/delete_scheduling_tool.py b/erpnext/patches/v11_1/delete_scheduling_tool.py
new file mode 100644
index 0000000..b7ad28a
--- /dev/null
+++ b/erpnext/patches/v11_1/delete_scheduling_tool.py
@@ -0,0 +1,9 @@
+# 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():
+ if frappe.db.exists("DocType", "Scheduling Tool"):
+ frappe.delete_doc("DocType", "Scheduling Tool", ignore_permissions=True)