I would like to insert an image from mymodule folder but the image doesn't display. I'm using docker for this odoo.
This is my code:
<img src='/trabaud/static/img/img.png' width="100%" height="100%"/>
but image not show
I found a similar case: https://github.com/odoo/odoo/issues/32674 but in my case, this solution is not working.
Could anyone help me, please?
Try to just replace 'src' to 't-attf-src', Hope it will be work.
try this:
<t t-if="record.image and record.image.raw_value !== false">
<img t-att-src="'data:image/png;base64,'+record.image.raw_value" class="oe_avatar oe_kanban_avatar_smallbox"/>
</t>
I solved it check this:
https://stackoverflow.com/questions/66379366/how-to-insert-image-in-odoo-12-docker-qweb-report