Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
4303 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Autor

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>

Autor

Do we need to inherit and then change!

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

Autor

Thanks, Niyas

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
dub 24
3122
0
srp 25
344
4
kvě 25
2823
2
kvě 25
6256
2
dub 25
4337