summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers/main.py
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-09-27 12:54:48 +0200
committerqsm-odoo <qsm@odoo.com>2018-09-27 13:56:09 +0200
commit509a7f73b03c848ff379bb9a244700c873c4618a (patch)
tree37ca47e58d3a4cd66dfcae499d87da16c0487fdb /addons/web_editor/controllers/main.py
parent64719b71d5997c0463a9f8cde4fb8d1f5c88967a (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/web_editor/controllers/main.py')
-rw-r--r--addons/web_editor/controllers/main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py
index 012082b332b..13a633b5951 100644
--- a/addons/web_editor/controllers/main.py
+++ b/addons/web_editor/controllers/main.py
@@ -452,13 +452,13 @@ class Web_Editor(http.Controller):
self.get_custom_attachment(custom_url).unlink()
self.get_custom_view(custom_url).unlink()
- def get_custom_attachment(self, custom_url, op='like'):
- assert op in ('like', '=like', '='), 'Invalid operator'
+ def get_custom_attachment(self, custom_url, op='='):
+ assert op in ('=like', '='), 'Invalid operator'
IrAttachment = request.env["ir.attachment"]
return IrAttachment.search([("url", op, custom_url)])
def get_custom_view(self, custom_url, op='='):
- assert op in ('like', '=ilike', '='), 'Invalid operator'
+ assert op in ('=like', '='), 'Invalid operator'
IrUiView = request.env["ir.ui.view"]
return IrUiView.search([("name", op, custom_url)])