تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
2 الردود
2738 أدوات العرض

i am unable to hide user menu "My odoo account" any one please help me  

الصورة الرمزية
إهمال

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 @Ajay kumar ravidas

I hope you are doing well.

You will need to inherit the portal.user_dropdown template and add class to hide the menu.

Please find code in comment.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

الصورة الرمزية
إهمال

Code :-

<template id="my_account_link_hide" inherit_id="portal.user_dropdown">
<xpath expr="//a[@href='/my/home']" position="attributes">
<attribute name="class" add="d-none" separator=" "/>
</xpath>
</template>

الكاتب

Thank you

أفضل إجابة

Hi,

Inherit the template portal.user_dropdown

And using xpath, replace the /my/home.

<template id=“your”_template_id


          inherit_id=“portal”.user_dropdown>


    <xpath expr="//a[@href=‘/my/home’]” position="replace">


       </xpath>


</template>


Regards

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
1
أغسطس 24
3472
0
مارس 23
1459
0
أكتوبر 24
506
1
يوليو 23
1179
0
نوفمبر 24
1008