Merge pull request #846 from odoo-dev/master-autocomplete-quick-fix-ged

[FIX] prevent an incorrect state in autocompletion
This commit is contained in:
ged-odoo 2014-07-01 10:24:55 +02:00
commit 6d7f845374
1 changed files with 1 additions and 1 deletions

View File

@ -2505,7 +2505,7 @@ instance.web.search.AutoComplete = instance.web.Widget.extend({
if (!$next.length) $next = this.$('li:first-child');
} else {
$next = this.$('li.oe-selection-focus').prevAll(':not(.oe-separator)').first();
if (!$next.length) $next = this.$('li:last-child');
if (!$next.length) $next = this.$('li:not(.oe-separator)').last();
}
this.focus_element($next);
},