diff options
| author | Ivan Yelizariev <yelizariev@it-projects.info> | 2018-06-26 10:43:12 +0200 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2018-06-26 12:58:00 +0200 |
| commit | 5cecd0a197eba847e4a71bea3a31584d2b88ea6b (patch) | |
| tree | ec3b0128961ecccbd027a69b3c33b8697fb024e2 /addons/web_editor | |
| parent | fadb3e155e8a9602d62fd2293eaf9f227ce2ec1c (diff) | |
[FIX] web_editor: restore website context for assets editor
The assets editor controller was stripped of the website context with
https://github.com/odoo/odoo/commit/198673bf35f14e3a797d2ff09208a289e12bec4e
It was however needed by some client customizations.
Diffstat (limited to 'addons/web_editor')
| -rw-r--r-- | addons/web_editor/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py index c3f11def23b..3a156f69be7 100644 --- a/addons/web_editor/controllers/main.py +++ b/addons/web_editor/controllers/main.py @@ -244,7 +244,7 @@ class Web_Editor(http.Controller): ## @param bundles - True if the bundles views must be fetched (default to False) ## @param bundles_restriction - Names of the bundle in which to look for less files (if empty, search in all of them) ## @returns a dictionary with views info in the views key and style info in the less key - @http.route("/web_editor/get_assets_editor_resources", type="json", auth="user") + @http.route("/web_editor/get_assets_editor_resources", type="json", auth="user", website=True) def get_assets_editor_resources(self, key, get_views=True, get_less=True, bundles=False, bundles_restriction=[]): # Related views must be fetched if the user wants the views and/or the style views = request.env["ir.ui.view"].get_related_views(key, bundles=bundles) |
