[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:
parent
cc69fe1b25
commit
d165b1715c
|
@ -2722,7 +2722,7 @@ instance.web.form.FieldSelection = instance.web.form.AbstractField.extend(instan
|
||||||
return this._super();
|
return this._super();
|
||||||
},
|
},
|
||||||
store_dom_value: function () {
|
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.internal_set_value(
|
||||||
this.values[this.$('select')[0].selectedIndex][0]);
|
this.values[this.$('select')[0].selectedIndex][0]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue