Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
8184 Vistas

Hi every one,

I want to show my attachment(binary) field data on webpage as pdf file kindly guid.

Thank you so much in advance

Avatar
Descartar
Mejor respuesta

Hi,

You can use the following code, adapt it as you need:

<a t-attf-href="/web/content/#{attachment.id}?download=true" target="_blank">
    <div class='oe_attachment_embedded o_image' t-att-title="attachment.name" t-att-data-mimetype="attachment.mimetype" t-attf-data-src="/web/image/#{attachment.id}/100x80"/>
    <div class='oe_attachment_name'><t t-raw='attachment.name' /></div>
</a>

Best regards!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 21
6720
0
ene 21
804
2
abr 20
9846
0
may 24
1604
2
may 24
3227