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

I have developed one app in odoo. I want to create the tile menu on the odoo home page after installed my customized app

الصورة الرمزية
إهمال
أفضل إجابة

Hi ,

To Create a menu item ,

  • Create a directory within your module named static

  • Create another directory named description inside the static directory.

  • Make sure that your icon image is in 'png' format and named as : icon.png

  • Place the icon.png file inside the static/description folder 


module_name/static/description/icon.png


In the XML where you define your main menu, add the web_icon attribute:

Then upgrade your module.



The easiest way to create a custom odoo icon is,

Goto,

https://spilymp.github.io/ibo/

 

You can generate the icon by

  • Select Odoo Version, Icon Set,

  • By Clicking the web icon it will open a new tab based on the icon set you choose,
    Copy-Paste  the class and  select the background-color 
    eg:  fas fa-user-shield




  • By clicking generate button it will generate the icon and can download it by clicking the download button.





Hope it helps,

Kiran K

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

<menuitem name="Main Menu Name" id="main_menu_root" sequence="115"
web_icon="module_name,static/description/icon.png" />

أفضل إجابة

Hi,

Create a root menu item for your app and in the parent of your customized menu items give this root menu id. Place your image for your app in this path inside your custom module.

static/description/menu_icon.png

    <menuitem id="root_menu_your_app" 

            name="Your app name" 

            icon="fa-wrench"

            web_icon="your_module,static/description/menu_icon.png"

            sequence="35"/>

Thanks

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
يناير 24
8628
0
يناير 24
7
0
أغسطس 21
1306
4
يونيو 21
13417
3
فبراير 20
2869