brotherton-erpnext/erpnext/patches/v14_0/cleanup_workspaces.py
2023-05-31 16:31:58 +05:30

10 lines
208 B
Python

import frappe
def execute():
for ws in ["Retail", "Utilities"]:
frappe.delete_doc_if_exists("Workspace", ws)
for ws in ["Integrations", "Settings"]:
frappe.db.set_value("Workspace", ws, "public", 0)