summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers/main.py
diff options
context:
space:
mode:
authorRaphael Collet <rco@openerp.com>2016-02-23 14:54:34 +0100
committerRaphael Collet <rco@openerp.com>2016-03-21 13:46:44 +0100
commit4ddc32313996c8cf6e8e6dffd2253aad8a144ccf (patch)
tree32e6eaf4c7317b944c18d7758cb61f0636949a40 /addons/web_editor/controllers/main.py
parenteb04aa1e395d347c474181e90f8c8eded1d17ca3 (diff)
[FIX] base: fix and complete migration of base/ir
- add or fix decorators on methods - fix most compute methods (wrong dependencies) - revert changes in `eval_context` of `ir.actions` - various code simplifications and improvements - migrate methods that were not - ir_qweb: modify `QWebContext` to take an environment instead of `cr`, `uid`, `context` - ir_qweb: convert `AssetsBundle` to use new API `env` - ir_ui_view: use decorator `multi` on method `read_combined` - ir_ui_view: ensure that method `render` is never called with an xml_id - ir_ui_view: factor out part of the `ormcache` key of method `_read_template`
Diffstat (limited to 'addons/web_editor/controllers/main.py')
-rw-r--r--addons/web_editor/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py
index bd4fd66bcb8..ca418645471 100644
--- a/addons/web_editor/controllers/main.py
+++ b/addons/web_editor/controllers/main.py
@@ -18,7 +18,7 @@ class Web_Editor(http.Controller):
#------------------------------------------------------
@http.route('/web_editor/snippets', type='json', auth="user")
def snippets(self, **kwargs):
- return request.registry["ir.ui.view"].render(request.cr, request.uid, 'web_editor.snippets', None, context=request.context)
+ return request.env.ref('web_editor.snippets').render(None)
#------------------------------------------------------
# Backend html field