[FIX] mass_mailing: fix missing logo in welcome message template
Currently in mass_mailing when the user selects the welcome message template in the mailing body, the logo is missing. This is because the name of the logo image does not match the format, so it converts the extension of the source image from png to jpg. With a recent refactoring (see commit[1]), it renames the "s_default_image_logo" with "s_default_image_header_logo", so when loading the template, the format of the file name does not match with "s_default_image_logo" so it converts the extension of the source of the image in the template from png to jpg, and as a result, the image is not found. This commit resolves the above issue by adding the "header_logo" context, which prevents it from converting "s_default_image_logo" png to jpg. commit[1] -https://github.com/odoo/odoo/commit/a559fe4 task-3054248 X-original-commit: b41e8685f9b0462154f859441eebfd3a660c616c Part-of: odoo/odoo#105817
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
<div data-name="default"
|
||||
title="Welcome Message"
|
||||
data-img="/mass_mailing/static/src/img/theme_imgs/default_thumb"
|
||||
data-images-info='{"logo": {"format": "png"}}'>
|
||||
data-images-info='{"logo": {"format": "png"}, "header_logo": {"format": "png"}}'>
|
||||
<t t-call="mass_mailing.theme_default_template"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user