[FIX] web_editor: odoo.define can be undefined if not in edit mode

Commit 933949085d added the odoo variable
definition in the iframe template so the condition which checked if
odoo.define is available had to be adapted.
This commit is contained in:
Christophe Matthieu
2016-09-02 11:27:29 +01:00
committed by qsm-odoo
parent 743743db28
commit cdaee93f7f
+1 -1
View File
@@ -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');