[FIX] make m2o form fields focusable

bzr revid: xmo@openerp.com-20111006120425-z154ck3xez87ufbr
This commit is contained in:
Xavier Morel 2011-10-06 14:04:25 +02:00
parent 253467dfe2
commit bcaac70b1b
1 changed files with 3 additions and 0 deletions

View File

@ -1785,6 +1785,9 @@ openerp.web.form.FieldMany2One = openerp.web.form.Field.extend({
result.result.context = _.extend(result.result.context || {}, additional_context);
self.do_action(result.result);
});
},
focus: function () {
this.$input.focus();
}
});