* refactor: Workspace cleanup (cherry picked from commit243c49c550) # Conflicts: # erpnext/accounts/workspace/accounting/accounting.json # erpnext/assets/workspace/assets/assets.json * fix: Delete Retail and Utilities worspaces amd hide default Settings and Integration workspaces (cherry picked from commit0b28f641ad) * fix: Added pos links in Selling workspace (cherry picked from commit86f88817a9) * fix: removed duplicate links of manufacturing workspace (cherry picked from commit5cf4c8c8b7) * fix: Rearranged accounting module links (cherry picked from commite78a7de1e5) # Conflicts: # erpnext/accounts/workspace/accounting/accounting.json * chore: typo (cherry picked from commitbb67cc03df) * chore: conflicts --------- Co-authored-by: Nabin Hait <nabinhait@gmail.com> Co-authored-by: Ankush Menat <ankushmenat@gmail.com> Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -31,6 +31,7 @@ def after_install():
|
||||
add_standard_navbar_items()
|
||||
add_app_name()
|
||||
setup_log_settings()
|
||||
hide_workspaces()
|
||||
frappe.db.commit()
|
||||
|
||||
|
||||
@@ -205,3 +206,8 @@ def setup_log_settings():
|
||||
log_settings.append("logs_to_clear", {"ref_doctype": "Repost Item Valuation", "days": 60})
|
||||
|
||||
log_settings.save(ignore_permissions=True)
|
||||
|
||||
|
||||
def hide_workspaces():
|
||||
for ws in ["Integration", "Settings"]:
|
||||
frappe.db.set_value("Workspace", ws, "public", 0)
|
||||
|
||||
Reference in New Issue
Block a user