Skip to content
Snippets Groups Projects
Commit cdaee93f authored by Christophe Matthieu's avatar Christophe Matthieu Committed by qsm-odoo
Browse files

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

Commit 93394908 added the odoo variable
definition in the iframe template so the condition which checked if
odoo.define is available had to be adapted.
parent 743743db
Branches
Tags
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment