fix: Delete Retail and Utilities worspaces amd hide default Settings and Integration workspaces

This commit is contained in:
Nabin Hait 2023-05-26 14:29:59 +05:30
parent 243c49c550
commit 0b28f641ad
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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)