summaryrefslogtreecommitdiff
path: root/addons/web_editor/controllers/main.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-04-18 18:20:40 +0200
committerChristophe Simonis <chs@odoo.com>2018-04-18 18:20:40 +0200
commitfed775bc0c2d70463206bbdddd3cce9ae8469e6a (patch)
tree03fd8410a57a49c39658f1ba184e29ccef5b3291 /addons/web_editor/controllers/main.py
parent4d2e22bc392f27d920542e6ca025273080e5df77 (diff)
parent8c64159b8847dc465a21415c085d6526d280be02 (diff)
[MERGE] forward port branch 11.0 up to 8c64159b884
Diffstat (limited to 'addons/web_editor/controllers/main.py')
-rw-r--r--addons/web_editor/controllers/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web_editor/controllers/main.py b/addons/web_editor/controllers/main.py
index 68051f8c07c..2174dae0b90 100644
--- a/addons/web_editor/controllers/main.py
+++ b/addons/web_editor/controllers/main.py
@@ -164,7 +164,7 @@ class Web_Editor(http.Controller):
'datas_fname': datas_fname,
'type': 'url',
'url': url,
- 'public': True,
+ 'public': res_model == 'ir.ui.view',
'res_id': res_id,
'res_model': res_model,
})
@@ -195,7 +195,7 @@ class Web_Editor(http.Controller):
'name': name,
'datas': base64.b64encode(data),
'datas_fname': datas_fname,
- 'public': True,
+ 'public': res_model == 'ir.ui.view',
'res_id': res_id,
'res_model': res_model,
})