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

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

Solved by referencing the image from a custom module:

custom_module/static/images/logo.png

Avatar
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
pro 24
6000
1
lis 24
2422
1
lis 24
1820
2
zář 24
1673
1
srp 24
3344