diff --git a/erpnext/patches.txt b/erpnext/patches.txt index 3a59d3c8b2..47eced7c2e 100644 --- a/erpnext/patches.txt +++ b/erpnext/patches.txt @@ -334,3 +334,4 @@ execute:frappe.delete_doc_if_exists("Report", "Tax Detail") erpnext.patches.v15_0.enable_all_leads erpnext.patches.v14_0.update_company_in_ldc erpnext.patches.v14_0.set_packed_qty_in_draft_delivery_notes +erpnext.patches.v14_0.cleanup_workspaces diff --git a/erpnext/patches/v14_0/cleanup_workspaces.py b/erpnext/patches/v14_0/cleanup_workspaces.py new file mode 100644 index 0000000000..91db13c312 --- /dev/null +++ b/erpnext/patches/v14_0/cleanup_workspaces.py @@ -0,0 +1,9 @@ +import frappe + + +def execute(): + for ws in ["Retail", "Utilities"]: + frappe.delete_doc_if_exists("Workspace", ws) + + for ws in ["Integration", "Settings"]: + frappe.db.set_value("Workspace", ws, "public", 0)