From 2b5bb95d430a8cfb3f6abb982f7402c33cdcc313 Mon Sep 17 00:00:00 2001 From: Romain Derie Date: Thu, 15 Mar 2018 14:38:59 +0100 Subject: [PATCH] [FIX] website: make 'Optimize SEO' working again (for empty fields) This commit https://github.com/odoo/odoo/commit/965f49201812cc3cca319a3b5b93331272dd2288 removed empty meta-description and meta-keywords from the DOM for SEO audit reasons (these tags when empty are considered as duplicates at a SEO point of view). By doing so it prevent the 'Optimize SEO' to work correctly since it can't retrieve the DOM elements that are used to store the user modifications until he saves. Now, even when these meta-tags are empty, we display them to people having the rights to 'Optimize SEO'. This closes #23659 --- addons/website/views/website_templates.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 81a860ad21b..bcd6e5d5a97 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -110,8 +110,8 @@ and main_object.website_meta_description or website_meta_description"/> - - + +