This question has been flagged
5 Replies
6855 Views

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



Avatar
Discard
Author

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

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>

Avatar
Discard
Author

Hi Naresh, this doesn't working

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