콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

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

 

아바타
취소
베스트 답변

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

Happy to help you

관련 게시물 답글 화면 활동
3
1월 24
13576
1
3월 15
8212
1
1월 25
23254
3
12월 22
5661
4
3월 16
4986