[FIX] broken writing to selection field from web UI

lp bug: https://launchpad.net/bugs/1088764 fixed

bzr revid: xmo@openerp.com-20121211090610-qoh1zazzpp00sx5l
This commit is contained in:
Xavier Morel 2012-12-11 10:06:10 +01:00
parent cc69fe1b25
commit d165b1715c
1 changed files with 1 additions and 1 deletions

View 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]);
}