From 78a64fed28e9ef332f67969bcf72be5f7af40544 Mon Sep 17 00:00:00 2001 From: Hiral Bhavsar Date: Tue, 15 Oct 2019 13:14:59 +0000 Subject: [PATCH] [FIX] website: display correct website logo on SEO dialog Currently, the website logo is not displayed on SEO dialog and instead the company logo is being displayed. After recent changes (see [1]), company logo and website logo are now different and so changes were not adapted on the website. This commit fixes the issue by adapting the changes and displaying the correct website logo on the SEO dialog. [1] - https://github.com/odoo/odoo/commit/8be4567ae8f6b0388206c091590278ef11a2df21 task-2083006 closes odoo/odoo#42391 X-original-commit: 9c75960e931bc77530074f60997cced4b5907d3e Signed-off-by: Quentin Smetz (qsm) --- addons/website/static/src/js/menu/seo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/menu/seo.js b/addons/website/static/src/js/menu/seo.js index 60bc2318955..a4e9995dbbc 100644 --- a/addons/website/static/src/js/menu/seo.js +++ b/addons/website/static/src/js/menu/seo.js @@ -538,7 +538,7 @@ var MetaImageSelector = Widget.extend({ this.metaTitle = data.title || ''; this.activeMetaImg = data.metaImg; this.serverUrl = data.htmlpage.url(); - data.pageImages.unshift(_.str.sprintf('/web/image/res.company/%s/logo', odoo.session_info.website_company_id)); + data.pageImages.unshift(_.str.sprintf('/web/image/website/%s/logo', odoo.session_info.website_id)); data.pageImages.unshift(_.str.sprintf('/web/image/website/%s/social_default_image', odoo.session_info.website_id)); this.images = _.uniq(data.pageImages); this.customImgUrl = _.contains(data.pageImages, data.metaImg) ? false : data.metaImg;