[MERGE] forward port of branch saas-3 up to 1783a7d

This commit is contained in:
Christophe Simonis 2015-08-27 18:01:52 +02:00
commit d744923b63
1 changed files with 4 additions and 0 deletions

View File

@ -2964,6 +2964,10 @@ instance.web.form.FieldTextHtml = instance.web.form.AbstractField.extend(instanc
}
}
},
focus: function() {
var input = !this.get("effective_readonly") && this.$cleditor
return input ? input.focus() : false;
},
render_value: function() {
if (! this.get("effective_readonly")) {
this.$textarea.val(this.get('value') || '');