Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7794 Vizualizări

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

 

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Autor

Excellent answer Many thanks !!!!

Happy to help you

Related Posts Răspunsuri Vizualizări Activitate
3
ian. 24
13574
1
mar. 15
8209
1
ian. 25
23250
3
dec. 22
5660
4
mar. 16
4984