From 4ddc32313996c8cf6e8e6dffd2253aad8a144ccf Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 23 Feb 2016 14:54:34 +0100 Subject: [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` --- addons/mass_mailing/controllers/web_editor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/mass_mailing/controllers/web_editor.py') diff --git a/addons/mass_mailing/controllers/web_editor.py b/addons/mass_mailing/controllers/web_editor.py index a9cff910c69..ac2a7ba3b4e 100644 --- a/addons/mass_mailing/controllers/web_editor.py +++ b/addons/mass_mailing/controllers/web_editor.py @@ -22,4 +22,4 @@ class Web_Editor(Web_Editor): @http.route(['/mass_mailing/snippets'], type='json', auth="user", website=True) def mass_mailing_snippets(self): values = {'company_id': request.env['res.users'].browse(request.uid).company_id} - return request.registry["ir.ui.view"].render(request.cr, request.uid, 'mass_mailing.email_designer_snippets', values, context=request.context) + return request.env.ref('mass_mailing.email_designer_snippets').render(values) -- cgit v1.2.3