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

I'm using Odoo13 CE.


I tried by using:

```

<?xml version="1.0" encoding="utf-8"?>

<odoo noupdate="0">

    <templates id="template" xml:space="preserve">

        <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="shortcuts" class="dropdown-item d-none d-md-inline-block">Shortcuts</a>

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

        </t>

    </templates>

</odoo>

```

My Module structure:

```

{

    'name': 'Replace UserMenu.Action',

    'description': """

        Remove some UserMenu""",

    'version': '13',

    'license': 'AGPL-3',

    'author': 'Rafael',

    'website': ' ',

    'depends': [

        'base', 'web'

    ],

    'data': [

    ],

    'demo': [

    ],

    'qweb': [

        'static/src/xml/change_menu2.xml'

    ],

}

```

But no lucky. I also tried with or without odoo tag, changing templates to template, but it doesn't work anyway. I tried to reinstall the module, commands like -u, -i with -d and no success. 

I've tried this aswell >>> \https://www.odoo.com/forum/help-1/question/remove-support-menu-entry-from-top-right-corner-150211

So, please, dont just copy this link and say something like: "try this" because I already tried.

Do I need to add some JS code or something like that?


Thanks in advance.

อวตาร
ละทิ้ง

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,

Try this

<?xml version="1.0" encoding="utf-8"?>
<template xml:space="preserve">
    <t t-extend="UserMenu.Actions">
<t t-jquery="a[data-menu='documentation']" t-operation='replace'></t>
    </t>
</template>


Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
เม.ย. 24
5507
0
ก.ค. 22
929
0
ส.ค. 21
3014
1
ก.ค. 21
3953