Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3772 Widoki

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Solved by referencing the image from a custom module:

custom_module/static/images/logo.png

Awatar
Odrzuć
Najlepsza odpowiedź

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. 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
wrz 25
3154
0
sie 25
705
1
sie 25
2888
2
lip 25
8535
2
lip 25
4924