[FIX] hide form autofocus trying to focus destroyed fields under the rug
lp bug: https://launchpad.net/bugs/1153437 fixed bzr revid: xmo@openerp.com-20130312132144-o5enjfemuk5zxilz
This commit is contained in:
parent
ee46eb8015
commit
18eb55643e
|
@ -3306,7 +3306,7 @@ instance.web.form.FieldMany2One = instance.web.form.AbstractField.extend(instanc
|
|||
},
|
||||
focus: function () {
|
||||
if (!this.get('effective_readonly')) {
|
||||
this.$input[0].focus();
|
||||
this.$input && this.$input[0].focus();
|
||||
}
|
||||
},
|
||||
_quick_create: function() {
|
||||
|
|
Loading…
Reference in New Issue