fix: labels in user desk settings

This commit is contained in:
Gursheen Anand 2026-02-22 13:53:48 +05:30
parent cf1a3760bb
commit 85dc6d15b0
2 changed files with 14 additions and 15 deletions

View file

@ -53,8 +53,8 @@
"search_bar",
"notifications",
"list_settings_section",
"list_sidebar",
"bulk_actions",
"list_sidebar",
"view_switcher",
"form_settings_section",
"form_sidebar",
@ -771,13 +771,13 @@
"default": "1",
"fieldname": "search_bar",
"fieldtype": "Check",
"label": "Search Bar"
"label": "Show search bar"
},
{
"default": "1",
"fieldname": "notifications",
"fieldtype": "Check",
"label": "Notifications"
"label": "Allow notifications"
},
{
"collapsible": 1,
@ -789,20 +789,20 @@
"default": "1",
"fieldname": "list_sidebar",
"fieldtype": "Check",
"label": "Sidebar"
"label": "Show sidebar"
},
{
"default": "1",
"fieldname": "bulk_actions",
"fieldtype": "Check",
"label": "Bulk Actions",
"label": "Allow bulk actions",
"permlevel": 1
},
{
"default": "1",
"fieldname": "view_switcher",
"fieldtype": "Check",
"label": "View Switcher"
"label": "Show view switcher"
},
{
"collapsible": 1,
@ -814,25 +814,25 @@
"default": "1",
"fieldname": "form_sidebar",
"fieldtype": "Check",
"label": "Sidebar"
"label": "Show sidebar"
},
{
"default": "1",
"fieldname": "timeline",
"fieldtype": "Check",
"label": "Timeline"
"label": "Show timeline"
},
{
"default": "1",
"fieldname": "dashboard",
"fieldtype": "Check",
"label": "Dashboard"
"label": "Show dashboard"
},
{
"default": "0",
"fieldname": "show_absolute_datetime_in_timeline",
"fieldtype": "Check",
"label": "Show Absolute Datetime in Timeline"
"label": "Show absolute datetime in timeline"
},
{
"fieldname": "sessions_tab",
@ -851,7 +851,7 @@
"default": "0",
"fieldname": "form_navigation_buttons",
"fieldtype": "Check",
"label": "Navigation Buttons"
"label": "Show navigation buttons"
}
],
"icon": "fa fa-user",
@ -905,7 +905,7 @@
}
],
"make_attachments_public": 1,
"modified": "2026-02-20 19:47:59.211390",
"modified": "2026-02-22 13:44:36.317890",
"modified_by": "Administrator",
"module": "Core",
"name": "User",

View file

@ -141,12 +141,11 @@ def add(args: dict[str, Any] | None = None, *, ignore_permissions: bool | int =
@frappe.whitelist()
def add_multiple(args: dict[str, Any] | None = None):
def add_multiple() -> None:
if not frappe.get_cached_value("User", frappe.session.user, "bulk_actions"):
frappe.throw(_("You are not allowed to perform bulk actions"), frappe.PermissionError)
if not args:
args = frappe.local.form_dict
args = frappe.local.form_dict
docname_list = json.loads(args["name"])