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

I am trying to get my custom app icon to show.  The app works, from the odoo root it is located at C:\odoo\custom_addons\hide_prices.

It works.  However in hide_prices I have the icon.png file and it's dimensions are 100 x 100. The manifest file looks like:

{

    'name': 'Hide Product Prices',

    'version': '1.0.1',

    'category': 'Inventory',

    'summary': 'Hides sale and cost prices from product forms',

    'author': 'Danon Knox',

    'depends': ['product'],

    'data': [

        'views/hide_product_prices.xml',

    ],

    'images': ['icon.png'],

    'installable': True,

    'application': False,

}

But when I go to the apps and search for my app the icon shows as the default cube with the green outline.

What do I have to do to get my icon to show?  I am using the on prem community edition, v 17 and I pulled it from Git.  Manual install.


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

Thank you very much Cybrosys .., it worked.  Now it's back to odooing. 

Câu trả lời hay nhất

Hi,


To display a custom icon for your app in the Odoo Apps view, place the icon file at the following path inside your module:

static/description/icon.png

This will show the icon in apps.


Hope it helps

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