Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7765 Lượt xem

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

 

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Tác giả

Excellent answer Many thanks !!!!

Happy to help you

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 1 24
13534
1
thg 3 15
8168
1
thg 1 25
23179
3
thg 12 22
5634
4
thg 3 16
4972