Help

2

[odoo10] : How to set custom icon on button with external file? like png file not by fa.

Hello All,

is that possible in odoo v10 we could set up icon for the button like we were able to do it in older version.

In older version we were able to set our icon on the following path can we can directly use in our element.

/web/static/src/img/icon,

Same thing is possible in odoo v10?


Any idea, appreciated.


Regards,

Anil



2 Comments
Avatar
Discard
Avatar
Niyas Raphy
-

@nilyas : I appreciate your comment, but this is the method of older version of odoo, which doesn't work in 10.

2 Answers
1
Avatar
NareshKumar.P
Best Answer

Hi try this..

<button name="button_name" string="Test" type="object"><img height="20" width="20" src="/Project/static/img/in.png"/></button>

1 Comment
Avatar
Discard

Hi Naresh, this doesn't working

1
Best Answer

Hi try this,

    step - 1 : First you can add your image in /web/static/src/img/icon directory.
    step - 2 : <button name="button_name" string="Image Button" type="object" icon="<image_name>"/>

Note: image name without like - .png, .jpg or etc.

Avatar
Discard