From 984afdf120718a71b6b38a010c87d0b1bc44baf7 Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Thu, 29 Sep 2016 15:34:46 +0200 Subject: [FIX] mass_mailing, web_editor: set up correct iframe communication Previous commit tried to handle iframe assets in a more standard way but instead broke the order followed to install iframe communication. While waiting for a more clean way to handle iframe assets and communication, revert to old set up. --- addons/web_editor/static/src/js/iframe.js | 1 + 1 file changed, 1 insertion(+) (limited to 'addons/web_editor/static/src/js/iframe.js') diff --git a/addons/web_editor/static/src/js/iframe.js b/addons/web_editor/static/src/js/iframe.js index 398dc2e5bf9..e2c3b5ef8a4 100644 --- a/addons/web_editor/static/src/js/iframe.js +++ b/addons/web_editor/static/src/js/iframe.js @@ -10,6 +10,7 @@ var snippet_editor = require('web_editor.snippet.editor'); ajax.loadXML('/web/static/src/xml/base_common.xml', core.qweb); +var callback = window ? window["callback"] : undefined; window.top.odoo[callback+"_updown"] = function (value, fields_values, field_name) { var $editable = $("#editable_area"); if(value !== $editable.prop("innerHTML")) { -- cgit v1.2.3