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

how to use image from the static folder inside xml file ?
and if i want to use image from the web folder in another module,  how can i do that ?

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

Hi,

you can use images stored in the static folder or from the web module inside an XML file by specifying the correct path.

suppose you have stored in static/src/img folder, you can use as this


to use from web module:



Thanks

                               

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

Hello Rachel,

If you would like to use image from the same static folder 
mention path like this 

src="/static/description/icon.png"

If you want to use image from another module mention path like this

src="contacts/static/description/icon.png"

For menu item web icon you can define another module reference like this

web_icon="contacts,static/description/icon.png"

I hope this will help you !

Thanks,
Vimal Rughani (Founder and CTO)
Himanjali Intelligent Automation Pvt Ltd
Contact:
 +91- 972-606-7737
Emailhello@himanjali.com 
NewsletterThe Odoo Scoop
Websitewww.himanjali.co


Ảnh đại diện
Huỷ bỏ