تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
3972 أدوات العرض

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
أبريل 24
2858
4
مايو 25
2481
2
مايو 25
5818
2
أبريل 25
2497
5
مارس 25
18968