[FIX] broken writing to selection field from web UI
authorXavier Morel <xmo@openerp.com>
Tue, 11 Dec 2012 09:06:10 +0000 (10:06 +0100)
committerXavier Morel <xmo@openerp.com>
Tue, 11 Dec 2012 09:06:10 +0000 (10:06 +0100)
lp bug: https://launchpad.net/bugs/1088764 fixed

bzr revid: xmo@openerp.com-20121211090610-qoh1zazzpp00sx5l

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

index 3d897c5..9fa863d 100644 (file)
@@ -2722,7 +2722,7 @@ instance.web.form.FieldSelection = instance.web.form.AbstractField.extend(instan
         return this._super();
     },
     store_dom_value: function () {
-        if (!this.get('effective_readonly') && this.$('input').length) {
+        if (!this.get('effective_readonly') && this.$('select').length) {
             this.internal_set_value(
                 this.values[this.$('select')[0].selectedIndex][0]);
         }