From 889cc9be80afc2a967443d858ab8d97fa41b2f29 Mon Sep 17 00:00:00 2001 From: Ivan Yelizariev Date: Fri, 13 Aug 2021 08:15:22 +0000 Subject: [PATCH] [FIX] website: allow submit sitemap to non-first website MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes odoo/odoo#75184 X-original-commit: 81bd6a589bab99418ffba63307684d228ebc718a Signed-off-by: Jérémy Kersten (jke) Signed-off-by: Ivan Yelizariev // IEL --- addons/website/static/src/js/backend/res_config_settings.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addons/website/static/src/js/backend/res_config_settings.js b/addons/website/static/src/js/backend/res_config_settings.js index 2ebee758abc..6dd014c05a6 100644 --- a/addons/website/static/src/js/backend/res_config_settings.js +++ b/addons/website/static/src/js/backend/res_config_settings.js @@ -27,6 +27,9 @@ BaseSettingController.include({ * Without this override, it is impossible to edit robots.txt website other than the * first because discarding will revert it back to the default value. * + * Without this override, it is impossible to submit sitemap to google other than for the + * first website because discarding will revert it back to the default value. + * * Without this override, it is impossible to install a theme on a website * other than the first because discarding will revert it back to the * default value. @@ -36,6 +39,7 @@ BaseSettingController.include({ _onButtonClicked: function (ev) { if (ev.data.attrs.name === 'website_go_to' || ev.data.attrs.name === 'action_open_robots' + || ev.data.attrs.name === 'action_ping_sitemap' || ev.data.attrs.name === 'install_theme_on_current_website') { FormController.prototype._onButtonClicked.apply(this, arguments); } else {