Odoo Help

1

0
2 Answers
0
Carlos A García
19‏/12‏/2018 4:16 م

If you want to show an image from the database you can just use the image widget like this:

<span t-field="o.image_field_name" t-field-options='{"widget": "image"}'/>

And if you want to show an image stored as a file:

<img t-att-src="'/module_name/static/src/img/image_name.png'" />

Note: respect the order and the type of the quotes

0
NSC
22‏/7‏/2015 3:50 م

Has nobody really never loaded an image file from disk within a qweb report to explain to me how it works?

Ask a Question
Writer
270
NSC
Keep Informed
1 follower(s)
About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now