[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) <qsm@odoo.com>
This commit is contained in:
Hiral Bhavsar
2019-12-26 11:39:59 +00:00
parent de5896e727
commit 78a64fed28
+1 -1
View File
@@ -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;