跳至內容
選單
此問題已被標幟
1 回覆
7778 瀏覽次數

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
13545
1
3月 15
8174
1
1月 25
23185
3
12月 22
5637
4
3月 16
4974