[FIX] web_editor: debug mode is not applied in the iframe of html field

This commit is contained in:
Christophe Matthieu
2016-09-05 17:00:33 +01:00
committed by qsm-odoo
parent 0cca5651a5
commit ea8f29e260
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -251,7 +251,7 @@ var FieldTextHtml = widget.extend({
attr.translatable = 1;
}
if (session.debug) {
attr.debug = 1;
attr.debug = session.debug;
}
attr.lang = attr.enable_editor ? 'en_US' : this.session.user_context.lang;
+1 -1
View File
@@ -40,7 +40,7 @@
if (window.top.odoo && !window.top.odoo[callback+"_updown"]) {
window.top.odoo[callback+"_updown"] = function (value, fields_values) {
var editable = document.getElementsByClassName("o_editable")[0];
if (value !== editable.innerHTML) {
if (editable && value !== editable.innerHTML) {
editable.innerHTML = value;
}
};