[FIX] would be better if we could write to textareas as well
authorXavier Morel <xmo@openerp.com>
Tue, 11 Dec 2012 10:19:01 +0000 (11:19 +0100)
committerXavier Morel <xmo@openerp.com>
Tue, 11 Dec 2012 10:19:01 +0000 (11:19 +0100)
bzr revid: xmo@openerp.com-20121211101901-1lqbca199wbce2ld

addons/web/static/src/js/view_form.js

index 9fa863d..7420403 100644 (file)
@@ -2549,7 +2549,7 @@ instance.web.form.FieldText = instance.web.form.AbstractField.extend(instance.we
         return this._super();
     },
     store_dom_value: function () {
-        if (!this.get('effective_readonly') && this.$('input').length) {
+        if (!this.get('effective_readonly') && this.$('textarea').length) {
             this.internal_set_value(
                 instance.web.parse_value(
                     this.$textarea.val(),