brotherton-erpnext/erpnext/patches/v14_0/cleanup_workspaces.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
208 B
Python
Raw Normal View History

import frappe
def execute():
for ws in ["Retail", "Utilities"]:
frappe.delete_doc_if_exists("Workspace", ws)
2023-05-31 11:01:58 +00:00
for ws in ["Integrations", "Settings"]:
frappe.db.set_value("Workspace", ws, "public", 0)