İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
3576 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

Solved by referencing the image from a custom module:

custom_module/static/images/logo.png

Avatar
Vazgeç
En İyi Yanıt

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
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Tem 25
2510
2
Tem 25
7954
2
Tem 25
4393
2
Tem 25
4104
2
Haz 25
2699