Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7748 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ม.ค. 24
13525
1
มี.ค. 15
8154
1
ม.ค. 25
23162
3
ธ.ค. 22
5626
4
มี.ค. 16
4969