Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
2326 Visualizações

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
Cancelar
Autor Melhor resposta

Solved by referencing the image from a custom module:

custom_module/static/images/logo.png

Avatar
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
dez. 24
6034
1
nov. 24
2469
1
nov. 24
1844
2
set. 24
1717
1
ago. 24
3395