web: do not select the first result if click on search more
authorJacques-Etienne Baudoux <jba@odoo.com>
Fri, 20 Jun 2014 14:10:02 +0000 (16:10 +0200)
committerMartin Trigaux <mat@openerp.com>
Fri, 20 Jun 2014 15:41:09 +0000 (17:41 +0200)
commit7e85786b8389993fa5bd3a0be68343ad0dbaa187
treeeaf217c0de0b481fe2f1f5b7ce875b374066edd5
parent86c24265551920dd837703a7f058970676e62c24
web: do not select the first result if click on search more

When searching for a record in a m2o field, if we click on 'search more' we loose the focus on the field and select the first suggestion (which triggers potential on_change). This prevents the selection for this case.
addons/web/static/src/js/view_form.js