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
207 B
Python
Raw Normal View History

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)