diff options
| author | qsm-odoo <qsm@odoo.com> | 2018-09-27 12:54:48 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-09-27 13:56:09 +0200 |
| commit | 509a7f73b03c848ff379bb9a244700c873c4618a (patch) | |
| tree | 37ca47e58d3a4cd66dfcae499d87da16c0487fdb /addons/website/controllers/web_editor.py | |
| parent | 64719b71d5997c0463a9f8cde4fb8d1f5c88967a (diff) | |
[FIX] website, *: restore color edition in theme dialog
* base, web_editor
Commit https://github.com/odoo/odoo/commit/44d659d0df6b50ae230af39a0d41a46b9549e2ae
made the system work with multi-website but fetching the assets content
was unfortunately not working in multi-website...
Also restore correct search operators.
Diffstat (limited to 'addons/website/controllers/web_editor.py')
| -rw-r--r-- | addons/website/controllers/web_editor.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/controllers/web_editor.py b/addons/website/controllers/web_editor.py index d70e912018b..93c3aa46007 100644 --- a/addons/website/controllers/web_editor.py +++ b/addons/website/controllers/web_editor.py @@ -22,7 +22,7 @@ class Web_Editor(Web_Editor): res['website_id'] = website.id return res - def get_custom_attachment(self, custom_url, op='like'): + def get_custom_attachment(self, custom_url, op='='): website = request.env['website'].get_current_website() res = super(Web_Editor, self).get_custom_attachment(custom_url, op=op) return res.with_context(website_id=website.id).filtered(lambda x: not x.website_id or x.website_id == website) |
