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

Custom module is loaded on Odoo 10 enterprise and works well.

Icon file is "moduleName"/static/description/icon.png (5kB png file)

Icon appear well on Apps module (use to install and update module). So it existing and is a right format.

But icon on main Odoo launcher view doesn't appear. A "standard" icon replace the right icon (a box with exclamation mark).

Any idea to view the module icon on Odoo main view ?

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

Hi,

Did you provide web_icon for the menu ?

if not do like this,

<menuitem
id="menu_open_hrms"
name="Open HRMS"
web_icon="open_hrms_core,static/description/icon.png"
sequence="51"/>


Thanks

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

activate debug mode with assets and refresh it, may be your static files are not loading

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất
add this to the main menu :  web_icon="nameofyourmodel,static/description/icon.png" 
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

I think you must create a submenu and its parent should be the main menuitem.

Ảnh đại diện
Huỷ bỏ