summaryrefslogtreecommitdiff
path: root/addons/web_editor/views/iframe.xml
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2016-08-29 15:20:47 +0200
committerqsm-odoo <qsm@odoo.com>2016-09-02 11:27:29 +0100
commitcdaee93f7fd75098b856cde77bd33b49a3f3f740 (patch)
tree8de488f03f6b1fdd202ffab494a77fcb64409c02 /addons/web_editor/views/iframe.xml
parent743743db287ccde108858b20349faaed38db00c2 (diff)
[FIX] web_editor: odoo.define can be undefined if not in edit mode
Commit 933949085d274d766c9f23094bb41fe8ebf7cf2f added the odoo variable definition in the iframe template so the condition which checked if odoo.define is available had to be adapted.
Diffstat (limited to 'addons/web_editor/views/iframe.xml')
-rw-r--r--addons/web_editor/views/iframe.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web_editor/views/iframe.xml b/addons/web_editor/views/iframe.xml
index 4c29a1b12f0..6ed1f39eddf 100644
--- a/addons/web_editor/views/iframe.xml
+++ b/addons/web_editor/views/iframe.xml
@@ -45,7 +45,7 @@
}
};
}
- if(window['odoo']) {
+ if(window.odoo.define) {
odoo.define('web.csrf', function (require) {
var token = "<t t-esc="request.csrf_token(None)"/>";
var core = require('web.core');