KEMBAR78
How to Create & Manage a New User Menu in Odoo 18 | PPTX
How to Create & Manage a New User
Menu in Odoo 18
Enterprise
Enterprise
Introduction
In this slide, we’ll discuss on how to create and manage a new
user menu in Odoo 18. The user menu in Odoo acts as a
centralized hub for quick access to essential features, enabling
efficient navigation through documentation, customization
options, and user-specific actions. It allows users to perform
various tasks from a single dropdown interface. Odoo 18
enhances the user interface, making it more practical and user-
friendly. This improvement facilitates the creation of new menus
and associated actions.
Enterprise
We can see the profile photo on the top right corner of the page when
we enter into Odoo. The user menu in Odoo acts as a centralized hub
for quick access to essential features. When we click on the image, we
can see different menu items like documentation, shortcuts, support,
etc. The User menu Registry houses all of the menu items. We must
expand the User menu registry to add a new user menu. All of the
menu items shown when the user menu is opened are stored in the
User Menu Registry
Enterprise
Next, to add a menuitem in the user menu registry we can add a js file
in our custom module.
Enterprise
Enterprise
The above code imports necessary components from Odoo's web
framework, such as registry, browser, and translation utilities (_t). It
defines a function debugItem which constructs a URL with a query
parameter debug=1 to enable developer mode. The function returns
a menu item with the label "Activate the developer mode" and a
callback that triggers a browser action to open the modified URL,
effectively switching to developer mode. The custom menu item is
then added to the user menu registry, setting its sequence to
determine its position in the dropdown. This addition allows users to
quickly toggle developer mode directly from the user menu in Odoo’s
backend interface.
Enterprise
Once the JavaScript is created, we can add js file into the manifest file
in the assets section to ensure proper integration.
'assets': {
'web.assets_backend': [
'student_detail/static/src/js/debug_mode.js'
]
},
Enterprise
After upgrading the module, we can see the menu item to activate
the developer mode is added .
For More Info.
Check our company website for related blogs
and Odoo book.
Check our YouTube channel for
functional and technical videos in Odoo.
Enterprise
www.cybrosys.com

How to Create & Manage a New User Menu in Odoo 18

  • 1.
    How to Create& Manage a New User Menu in Odoo 18 Enterprise
  • 2.
    Enterprise Introduction In this slide,we’ll discuss on how to create and manage a new user menu in Odoo 18. The user menu in Odoo acts as a centralized hub for quick access to essential features, enabling efficient navigation through documentation, customization options, and user-specific actions. It allows users to perform various tasks from a single dropdown interface. Odoo 18 enhances the user interface, making it more practical and user- friendly. This improvement facilitates the creation of new menus and associated actions.
  • 3.
    Enterprise We can seethe profile photo on the top right corner of the page when we enter into Odoo. The user menu in Odoo acts as a centralized hub for quick access to essential features. When we click on the image, we can see different menu items like documentation, shortcuts, support, etc. The User menu Registry houses all of the menu items. We must expand the User menu registry to add a new user menu. All of the menu items shown when the user menu is opened are stored in the User Menu Registry
  • 4.
    Enterprise Next, to adda menuitem in the user menu registry we can add a js file in our custom module.
  • 5.
  • 6.
    Enterprise The above codeimports necessary components from Odoo's web framework, such as registry, browser, and translation utilities (_t). It defines a function debugItem which constructs a URL with a query parameter debug=1 to enable developer mode. The function returns a menu item with the label "Activate the developer mode" and a callback that triggers a browser action to open the modified URL, effectively switching to developer mode. The custom menu item is then added to the user menu registry, setting its sequence to determine its position in the dropdown. This addition allows users to quickly toggle developer mode directly from the user menu in Odoo’s backend interface.
  • 7.
    Enterprise Once the JavaScriptis created, we can add js file into the manifest file in the assets section to ensure proper integration. 'assets': { 'web.assets_backend': [ 'student_detail/static/src/js/debug_mode.js' ] },
  • 8.
    Enterprise After upgrading themodule, we can see the menu item to activate the developer mode is added .
  • 9.
    For More Info. Checkour company website for related blogs and Odoo book. Check our YouTube channel for functional and technical videos in Odoo. Enterprise www.cybrosys.com