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

Hello my Friends;

I want to add the logo of my company to a menu.

I have tried :

        <menuitem id="menu_orvea_dashboard"

                  name=""

                  action="action_orvea_dashboards"

  icon="web,static/src/img/logo.png"

  web_icon="static/src/img/logo.png"

  web_icon_hover="static/src/img/logo.png"

                  sequence="1"/>

But its not orking :/

Can anyone help me know how to add a specific icon in the place of a menu.

Thanks a lot in advance.

Best regards.

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

Hi Vale,

Most of the examples you've pasted miss an important detail: the name of the module in the web_icon path and the incorrect file name. Here's a working example for a home menu icon (that I use in production on a V11):

<menuitem name="Title"
id="menu_orvea_dashboard"
sequence="1"
web_icon="your_module,static/src/img/icon.jpg"/>

The icon has to be named icon.jpg and the web_icon path has to have the module name.

Regards,
Yenthe

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

I have tried this but its not working :/ i got only the name of the menu. Is there anything else that i have to install

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 24
29201
3
ก.พ. 21
28301
How to change Menu Sequence (Odoo 11) แก้ไขแล้ว
3
เม.ย. 25
10795
0
ม.ค. 24
1440
5
มี.ค. 18
19493