Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
15772 Lượt xem

i'm using odoo 11 and i have installed open HRMS core which install a specific theme. After that i have installed another module which named overtime (bt_hr_overtime_automatic) to satisfy my needs but the problem is in the menu of the apps the new module doesn't has a icon and i want to add one(Ps: the module has a picture named "icon.png" in the folder /static/description/). Any idea on how to do that ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi Dhouha,

You can add the icon to any menu with the option "web_icon". For example:

<menuitem name="My Custom App"
              id="menu_custom_main"
              sequence="4"
              web_icon="your_module_name,static/src/img/icon.jpg"/>

In this example the icon (icon.jpg) is stored in the module named 'your_module_name' under the folder static/src/img.

Regards,
Yenthe

Ảnh đại diện
Huỷ bỏ
Tác giả

Thank you very much for your answer

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 7 24
2648
1
thg 6 24
5123
1
thg 10 23
10827
1
thg 10 23
98
1
thg 8 23
2193