Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
7789 Weergaven

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

 

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur

Excellent answer Many thanks !!!!

Happy to help you

Gerelateerde posts Antwoorden Weergaven Activiteit
3
jan. 24
13564
1
mrt. 15
8204
1
jan. 25
23222
3
dec. 22
5652
4
mrt. 16
4983