summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2013-03-12 14:21:44 +0100
committerXavier Morel <xmo@openerp.com>2013-03-12 14:21:44 +0100
commit18eb55643e42765ffb5f4ed03d70b1fa55967c95 (patch)
tree323aedf773efc9dcf43169d9a1247530d0c14fb2 /addons/web/static/src/js
parentee46eb8015d72c5a7ba69f347e844d9386d1cb04 (diff)
[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
Diffstat (limited to 'addons/web/static/src/js')
-rw-r--r--addons/web/static/src/js/view_form.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js
index d81ccbd0b51..673bfc7058e 100644
--- a/addons/web/static/src/js/view_form.js
+++ b/addons/web/static/src/js/view_form.js
@@ -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() {