Skip to Content
Menú
This question has been flagged
1 Respondre
2394 Vistes

I have inheritd  sale.order so that every sale.order now has an Image (fields.Binary)

Now, I want to show that image on the page when A customer looks at the order in the website

I tried using the quotation template builder from odoo but i dont think it is possible to render an image there, is it?

This is my current attempt

https://shottr.cc/s/GSYB/SCR-20220921-uia.png


I probably need to inherit the quotation template and add it via qWeb But I don't know how to do it, please tell me!


Avatar
Descartar
Best Answer

Hi Josef,

You can try like this to render the image.

<img t-att-src="'data:image/png;base64,%s' %order.image.decode('utf-8')"/>




Regards

Avatar
Descartar
Related Posts Respostes Vistes Activitat
1
de nov. 22
2909
1
de set. 22
4214
2
de març 22
1970
1
d’ag. 23
2380
1
de des. 22
2465