Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
19297 Zobrazení

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

Avatar
Zrušit
Autor

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>

Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
úno 24
2769
1
čvc 23
3650
1
úno 22
6408
0
srp 21
2705
3
srp 20
6779