[FIX] m2o#focus() does nothing when readonly
bzr revid: fme@openerp.com-20121018154755-a9hurjb0664l03x2
This commit is contained in:
parent
b5be361c55
commit
6e04399945
|
@ -3172,7 +3172,9 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
|
|||
return ! this.get("value");
|
||||
},
|
||||
focus: function () {
|
||||
this.$input.focus();
|
||||
if (!this.get('effective_readonly')) {
|
||||
this.$input.focus();
|
||||
}
|
||||
},
|
||||
_quick_create: function() {
|
||||
this.no_ed = true;
|
||||
|
|
Loading…
Reference in New Issue