diff options
| author | Raphael Collet <rco@openerp.com> | 2016-02-23 14:54:34 +0100 |
|---|---|---|
| committer | Raphael Collet <rco@openerp.com> | 2016-03-21 13:46:44 +0100 |
| commit | 4ddc32313996c8cf6e8e6dffd2253aad8a144ccf (patch) | |
| tree | 32e6eaf4c7317b944c18d7758cb61f0636949a40 /addons/mass_mailing/controllers/web_editor.py | |
| parent | eb04aa1e395d347c474181e90f8c8eded1d17ca3 (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/mass_mailing/controllers/web_editor.py')
| -rw-r--r-- | addons/mass_mailing/controllers/web_editor.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
