Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
3549 มุมมอง

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


อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
เม.ย. 24
2451
4
พ.ค. 25
1763
2
พ.ค. 25
5032
2
เม.ย. 25
1951
5
มี.ค. 25
18220