fix: Delete Retail and Utilities worspaces amd hide default Settings and Integration workspaces
This commit is contained in:
parent
243c49c550
commit
0b28f641ad
@ -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
|
||||
|
9
erpnext/patches/v14_0/cleanup_workspaces.py
Normal file
9
erpnext/patches/v14_0/cleanup_workspaces.py
Normal 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)
|
Loading…
x
Reference in New Issue
Block a user