Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
3 Besvarelser
19613 Visninger

How to add company logo to email templates? Thank you.

Avatar
Kassér
Forfatter

Hi, if I use ${object.company_id.logo} then the character ascii code of the logo image appears. How can I do to make the logo image appear instead? Thanks

<p><img src=" data:image/png;base64, ${object.company_id.logo}" height="100px" width="100px"/></p>

Bedste svar

Gmail, and probably many other emails, do NOT support base64 images, you have to use a url, like:

https://your-website.com/web/image/res.company/${object.company_id.id}/logo?width=180" style="height: auto; width: 180px;"  alt="${object.company_id.name}"/>

Avatar
Kassér
Bedste svar

Avatar
Kassér
Related Posts Besvarelser Visninger Aktivitet
1
feb. 24
3200
1
jul. 23
4119
1
feb. 22
6782
0
aug. 21
2960
3
aug. 20
7278