Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
3 Ответы
3939 Представления

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
2837
4
мая 25
2446
2
мая 25
5777
2
апр. 25
2449
5
мар. 25
18932