summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers
diff options
context:
space:
mode:
authorMartin Geubelle <mge@odoo.com>2016-09-14 11:23:39 +0200
committerGéry Debongnie <ged@odoo.com>2016-09-28 16:55:51 +0200
commite11f23b701cd061ee2090e506e7ff71cc2ed8c33 (patch)
treedc2eca65c88812132940c50865ecfc37b4cddf88 /addons/web_editor/controllers
parentfa4fa908900b01ca6a2bcde61b73ec6e45d936d2 (diff)
[REF] web_editor, website: move ACE editor to web_editor
The commit e59a7fe3ff5222288b0aa3d5fe356e437ed0741a has moved the ACE editor from website to web_editor. As some code on ir_ui_view was used for this widget, the code has also been moved to web_editor.
Diffstat (limited to 'addons/web_editor/controllers')
-rw-r--r--addons/web_editor/controllers/main.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py
index 972d2b5e27d..923b78492b3 100644
--- a/addons/web_editor/controllers/main.py
+++ b/addons/web_editor/controllers/main.py
@@ -222,3 +222,11 @@ class Web_Editor(http.Controller):
if attachments_to_remove:
attachments_to_remove.unlink()
return removal_blocked_by
+
+ @http.route('/web_editor/customize_template_get', type='json', auth='user', website=True)
+ def customize_template_get(self, key, full=False, bundles=False):
+ """ Get inherit view's informations of the template ``key``.
+ returns templates (which can be active or not)
+ ``bundles=True`` returns also the asset bundles
+ """
+ return request.env["ir.ui.view"].customize_template_get(key, full=full, bundles=bundles)