From dfdec5061780948ae7eca83d3422c804d16e11f2 Mon Sep 17 00:00:00 2001 From: Mahamadasif Ansari Date: Fri, 11 Nov 2022 04:07:09 +0000 Subject: [PATCH] [FIX] mass_mailing: fix missing logo in welcome message template MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- addons/mass_mailing/views/snippets_themes.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mass_mailing/views/snippets_themes.xml b/addons/mass_mailing/views/snippets_themes.xml index c8961e36037..80cf89ebc21 100644 --- a/addons/mass_mailing/views/snippets_themes.xml +++ b/addons/mass_mailing/views/snippets_themes.xml @@ -40,7 +40,7 @@
+ data-images-info='{"logo": {"format": "png"}, "header_logo": {"format": "png"}}'>