diff --git a/frappe/core/doctype/user/user.json b/frappe/core/doctype/user/user.json index 9a13ccb3a5..5454f5ac62 100644 --- a/frappe/core/doctype/user/user.json +++ b/frappe/core/doctype/user/user.json @@ -59,6 +59,7 @@ "view_switcher", "form_settings_section", "form_sidebar", + "form_navigation_buttons", "timeline", "dashboard", "show_absolute_datetime_in_timeline", @@ -850,6 +851,12 @@ "is_virtual": 1, "label": "Active Sessions", "options": "User Session Display" + }, + { + "default": "1", + "fieldname": "form_navigation_buttons", + "fieldtype": "Check", + "label": "Navigation Buttons" } ], "icon": "fa fa-user", @@ -903,7 +910,7 @@ } ], "make_attachments_public": 1, - "modified": "2025-12-13 12:53:46.486021", + "modified": "2026-01-02 16:00:51.406511", "modified_by": "Administrator", "module": "Core", "name": "User", diff --git a/frappe/core/doctype/user/user.py b/frappe/core/doctype/user/user.py index 4fbc28a96a..1557b90ce8 100644 --- a/frappe/core/doctype/user/user.py +++ b/frappe/core/doctype/user/user.py @@ -48,6 +48,7 @@ desk_properties = ( "bulk_actions", "view_switcher", "form_sidebar", + "form_navigation_buttons", "timeline", "dashboard", ) @@ -96,6 +97,7 @@ class User(Document): follow_created_documents: DF.Check follow_liked_documents: DF.Check follow_shared_documents: DF.Check + form_navigation_buttons: DF.Check form_sidebar: DF.Check full_name: DF.Data | None gender: DF.Link | None diff --git a/frappe/public/js/frappe/form/toolbar.js b/frappe/public/js/frappe/form/toolbar.js index bf527655fd..1f65c44f30 100644 --- a/frappe/public/js/frappe/form/toolbar.js +++ b/frappe/public/js/frappe/form/toolbar.js @@ -318,9 +318,12 @@ frappe.ui.form.Toolbar = class Toolbar { this.page.clear_menu(); if (frappe.boot.desk_settings.form_sidebar) { - // this.make_navigation(); this.make_menu_items(); } + + if (frappe.boot.desk_settings.form_navigation_buttons) { + this.make_navigation(); + } } make_navigation() {