diff options
| author | Ravi Gadhia <rga@openerp.com> | 2015-07-20 14:16:19 +0530 |
|---|---|---|
| committer | Martin Geubelle <mge@odoo.com> | 2015-09-17 11:34:22 +0200 |
| commit | 5bae0ce6f4299e6ad2c074fba8e4f7e140d6cf18 (patch) | |
| tree | bd91d28d1fe0a98adeb0344c9c4614107fa80607 /addons/web/static/src/js/views/form_relational_widgets.js | |
| parent | 45995b57c09841528ef2a683bb057e55a09f7623 (diff) | |
[FIX] web: autofocus in autocomplete popup on a m2x field
* When the autocomplete popup list appears, the focus should be on first element in list, in order to quick create a new record if no match
* Tour.js has been modified because jquery ui autocomplete needs a mouseenter event to be notified that this element will be set
Diffstat (limited to 'addons/web/static/src/js/views/form_relational_widgets.js')
| -rw-r--r-- | addons/web/static/src/js/views/form_relational_widgets.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web/static/src/js/views/form_relational_widgets.js b/addons/web/static/src/js/views/form_relational_widgets.js index ad49dcaf71e..73e68fedf9c 100644 --- a/addons/web/static/src/js/views/form_relational_widgets.js +++ b/addons/web/static/src/js/views/form_relational_widgets.js @@ -290,6 +290,7 @@ var FieldMany2One = common.AbstractField.extend(common.CompletionFieldMixin, com focus: function(e, ui) { e.preventDefault(); }, + autoFocus: true, html: true, // disabled to solve a bug, but may cause others //close: anyoneLoosesFocus, |
