Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
7736 Widoki

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

 

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Autor

Excellent answer Many thanks !!!!

Happy to help you

Powiązane posty Odpowiedzi Widoki Czynność
3
sty 24
13521
1
mar 15
8151
1
sty 25
23158
3
gru 22
5619
4
mar 16
4968