diff options
| author | Samuel Degueldre <sad@odoo.com> | 2019-10-23 10:32:28 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2020-02-05 23:49:53 +0000 |
| commit | 3bb666c226e60eec54f695061bb50fae379239a2 (patch) | |
| tree | 616c0a5c042d53ed23dba73eb599d13d5adff222 /addons/website/controllers | |
| parent | b3e9bfbac022c4dab690322da0f05f33c27865af (diff) | |
[REF] website, web_editor: move theme customization to edit mode
Previously, theme customization was done through a modal dialog in the
website module, this was not very user friendly since the rest of the
customization for the website design was done from edit mode, meaning
the user had to exit edit mode to customize things such as theme colors
or fonts. It was also rather confusing to have these seemingly related
things in completely unrelated places.
This commit moves all of the options that used to be in the theme
customization modal into a new tab in the editor's left panel.
This commit is mainly just about rendering the old modal as a third left
panel content. See next commit for deeper changes.
Note: same as before, those changes do apply the color/size/layout
immediately on the website, even if not saved. Changing that behavior
is complex and might be the job of another task.
Part of https://github.com/odoo/odoo/pull/41166
task-2088298
Diffstat (limited to 'addons/website/controllers')
| -rw-r--r-- | addons/website/controllers/main.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/addons/website/controllers/main.py b/addons/website/controllers/main.py index 83c0df51ff8..2ebc4900a6c 100644 --- a/addons/website/controllers/main.py +++ b/addons/website/controllers/main.py @@ -384,11 +384,6 @@ class Website(Home): return True - @http.route(['/website/theme_customize_reload'], type='http', auth="public", website=True) - def theme_customize_reload(self, href, enable, disable, tab=0, **kwargs): - self.theme_customize(enable and enable.split(",") or [], disable and disable.split(",") or []) - return request.redirect(href + ("&theme=true" if "#" in href else "#theme=true") + ("&tab=" + tab)) - @http.route(['/website/make_scss_custo'], type='json', auth='user', website=True) def make_scss_custo(self, url, values): """ |
