Skip to Content
Menu
This question has been flagged
1 Atsakyti
7768 Rodiniai

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!!

 

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Autorius

Excellent answer Many thanks !!!!

Happy to help you

Related Posts Replies Rodiniai Veikla
3
saus. 24
13537
1
kov. 15
8170
1
saus. 25
23180
3
gruod. 22
5636
4
kov. 16
4972