Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odgovori
3952 Prikazi

Hi,
I want to display Groups in the settings menu without debug mode.
How can I do that?

With debug mode:


Without debug mode:

Avatar
Opusti
Best Answer

Hi,
To show the menu always without enabling the debug mode, just you need to remove the technical features user group from the menu.

* Activate the developer mode
* Navigate to Settings -> Technical -> User Interface -> Menu items 
* Search for Groups and open it
* Remove Technical Features group from the Groups.





Now the menu will be visible always.

You can achieve the same from the code side also.







Thanks

Avatar
Opusti
Avtor

How can achieve the same from the code side?

<record id="external_id_of_the_menu" model="ir.ui.menu">
<field name="groups_id" eval="[(3, ref('base.group_no_one'))]"/>
</record>

Avtor

Do we need to inherit and then change!

yes, you can add the above code in your custom module,

Avtor

Thanks, Niyas

Best Answer

The solution from Stanislav should be the "Best Answer"!

Adding visibility to a user group is more consistent. Niyas' solution only works until the next update or upgrade of the "Base" module (could be also solved by adding "set no update to true")

Avatar
Opusti
Best Answer

Hi go to Groups settings and for the group add menu :) 


Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
4
apr. 24
2848
4
maj 25
2458
2
maj 25
5798
2
apr. 25
2475
5
mar. 25
18945