Odoo Hilfe

1

0
2 Answers
0
Carlos A García
19.12.18, 16: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.07.15, 15:50

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

Fragen Sie
Writer
270
NSC
Keep Informed
1 Verfolger
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