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

What is the "official" approach to change the UserMenu items, this is the top right menu with the Preferences and Logout items. Is there another way than editing /openerp/addons/web/static/src/xml/base.xml - atm I just html-comment the items I do not want to have there in the base.xml, but of course this is a hack - I did not find a way to edit this UserMenu via Settings -> Technical -> User Interface -> Menu Items.

How to modify this UserMenu?

Thanks for your attention!

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Please see my answer in 

\https://www.odoo.com/nl_NL/forum/help-1/question/how-can-i-hide-system-tray-icons-in-menu-bar-by-the-side-of-user-name-115512

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

  • You must have to make custom module.

  • Put account module in dependency of your custom module in __init__.py

  • Create xml file and do as per following,

Suppose you want to replace Invoicing menu with your custom menu Accounting,

Original

<menuitem name="Invoicing"
            id="menu_finance"
            groups="group_account_user,group_account_manager,group_account_invoice"
            sequence="50"/>

Modified

<menuitem name="Accounting"
            id="account.menu_finance"
            />

- See helpful Links,

How to create OpenERP Module

OpenERP Complete guide for Module Development and Installation

อวตาร
ละทิ้ง
ผู้เขียน

Thank you very much, I will take a look at it soon!

I can't see how this edits the UserMenu-items in the systray.

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
3521
1
ก.ค. 25
794
Self hosting Odoo custom แก้ไขแล้ว
1
ส.ค. 24
1845
3
ม.ค. 24
8600
0
ม.ค. 24
7