to add icon to our module we can add the icon path to the main menu of our module by using web_icon attribute as bellow
in odoo 9 :
<menuitem id="main_menu_id"
name="Menu String"
web_icon="module_name,static/description/icon_name.png"
web_icon="module_name,static/description/icon_name.png"
/>
in odoo 11 :
<menuitem id="main_menu_id"
name="Menu String"
web_icon="module_name,static/description/icon.png"
web_icon="module_name,static/description/icon.png"
/>
//here the name of your image must be icon
No comments:
Post a Comment