Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
3322 Vistas

When sending emails the odoo logo is shown in the email and not the company logo.

I tried to change mail_notification_light and add:


< img t-att-src="'/logo.png?company=1'" /> 

OR
< img t-att-src="'http://.../web/image?model=res.company&id=1&field=logo'" /> 

OR
< img t-att-src="'image_data_uri(company.logo)'" />


None of them work correctly!

Thank you

Avatar
Descartar
Autor Mejor respuesta

Solved by referencing the image from a custom module:

custom_module/static/images/logo.png

Avatar
Descartar
Mejor respuesta

May be you are using multiple DBs mapped to same domain. So the email template is not sure which logo to be displayed and from which DB. 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
jul 25
2889
2
jun 25
1749
0
may 25
14
1
dic 24
6877
1
nov 24
3293