跳至内容
菜单
此问题已终结
3 回复
4019 查看

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

With debug mode:


Without debug mode:

形象
丢弃
最佳答案

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

形象
丢弃
编写者

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>

编写者

Do we need to inherit and then change!

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

编写者

Thanks, Niyas

最佳答案

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")

形象
丢弃
最佳答案

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


形象
丢弃
相关帖文 回复 查看 活动
4
4月 24
2895
4
5月 25
2522
2
5月 25
5890
2
4月 25
2691
5
3月 25
19023