Odoo Help

0

how to add and use images for button in odoo v8

By
Jose M. González
on 2/22/16, 11:29 AM 1,148 views

Hi,

I want to use particular images in my module of odoo but it's doesn't show. 

1) create new directory in static/src/images >> add image: gi_trash.png

2) in my xml with the tree view add one button:
    <button name="action_delete_route" type="object"  icon="gi_trash" attrs="{'invisible':[('show_header','=','f')]}"> </button>

I have to include or add anything else?

Thanks for the help!!

 

1
Axel Mendoza
On 2/22/16, 8:04 PM

That only works if you copy the image or create a symlink shortcut to this path:

/openerp/addons/web/static/src/img/icons

Otherwise it will not work

Excellent answer Many thanks !!!!

Jose M. González
on 2/23/16, 2:53 AM

Happy to help you

Axel Mendoza
on 2/25/16, 3:08 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/22/16, 11:29 AM
Seen: 1148 times
Last updated: 2/23/16, 2:51 AM