[FIX] website: allow submit sitemap to non-first website
closes odoo/odoo#75184 X-original-commit: 81bd6a589bab99418ffba63307684d228ebc718a Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com> Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user