From e901ef2938e9502eeacb58ef3144232940390d46 Mon Sep 17 00:00:00 2001 From: Olivier Dony Date: Wed, 10 Feb 2016 13:40:02 +0100 Subject: [PATCH] [FIX] website: confusion/dangerous config options for CDN Users are tempted to enable all features they see under the former "Speed" section of the website settings, even if they have no idea what they do. One of them was `CDN Base URL` and had a default value that was wrong and very likely to break your website if enabled by mistake. This commit replaces the default value with a placeholder that looks more like a `sample` URL, and makes the fields required when the CDN option is enabled. It also moves the whole "Speed" options to technical features / debug mode. --- addons/website/i18n/website.pot | 2 +- addons/website/models/website.py | 2 +- addons/website/views/res_config.xml | 15 ++++++++++----- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/addons/website/i18n/website.pot b/addons/website/i18n/website.pot index b3c23ef7493..282fec6c8f5 100644 --- a/addons/website/i18n/website.pot +++ b/addons/website/i18n/website.pot @@ -3149,7 +3149,7 @@ msgstr "" #. module: website #: model:ir.ui.view,arch_db:website.view_website_config_settings -msgid "Speed" +msgid "Optimization" msgstr "" #. module: website diff --git a/addons/website/models/website.py b/addons/website/models/website.py index 9e3249f1400..91b9511d682 100644 --- a/addons/website/models/website.py +++ b/addons/website/models/website.py @@ -179,7 +179,7 @@ class website(osv.osv): 'company_id': lambda self,cr,uid,c: self.pool['ir.model.data'].xmlid_to_res_id(cr, openerp.SUPERUSER_ID,'base.main_company'), 'compress_html': False, 'cdn_activated': False, - 'cdn_url': '//localhost:8069/', + 'cdn_url': '', 'cdn_filters': '\n'.join(DEFAULT_CDN_FILTERS), } diff --git a/addons/website/views/res_config.xml b/addons/website/views/res_config.xml index 459e99fa2df..20a883735e0 100644 --- a/addons/website/views/res_config.xml +++ b/addons/website/views/res_config.xml @@ -100,8 +100,8 @@