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

we use V12 community.

how can we remove the "Support" Entry from the DropDown Menu in the top right location (When clicking on the username)


形象
丢弃

Enhance your Odoo interface with the Streamlined User Account Menu module. This efficient tool allows you to remove unnecessary options from the User Account Menu, resulting in a cleaner and more focused user experience. Ideal for businesses seeking to declutter their Odoo instance and maintain a professional and user-friendly environment.

https://apps.odoo.com/apps/modules/17.0/mh_hide_odoo_brand_from_user_account_menu

最佳答案

Hi,

You can extend the corresponding template in using XML, 


<t t-extend="UserMenu">

<t t-jquery="div.dropdown-menu.dropdown-menu-right"

t-operation="replace">

<div class="dropdown-menu dropdown-menu-right" role="menu">

<a role="menuitem" href="#" data-menu="settings"

class="dropdown-item">Preferences</a>

<a role="menuitem" href="#" data-menu="logout"

class="dropdown-item">Log out</a>

</div>

</t>

The above is a sample code where the entire user menu is replaced and only show the preference and logout button.


You can check this file in github to get the code with indentations : https://github.com/CybroOdoo/CybroAddons/blob/12.0/odoo-debrand/static/src/xml/base.xml


This is the code from the Debranding module: Odoo Debranding

Thanks

形象
丢弃
最佳答案


There is Addon-module, which does the Debranding of Odoo, Not just 'support' menu, you can also remove various stuffs such as 'powered by Odoo', etc

Debranding-V12 (by Cybrosys)

or

Debranding - V12 (by Hilar AK)

形象
丢弃