Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
3941 Lượt xem

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

With debug mode:


Without debug mode:

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

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>

Tác giả

Do we need to inherit and then change!

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

Tác giả

Thanks, Niyas

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 4 24
2837
4
thg 5 25
2447
2
thg 5 25
5777
2
thg 4 25
2451
5
thg 3 25
18933