Selecting "Search More..." incorrectly chooses the first search result

Bug #1213924 reported by Craig Gowing (credativ)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Web (MOVED TO GITHUB)
Invalid
Medium
Nicolas Vanhoren (OpenERP)
OpenERP Community Backports (Web)
New
Undecided
Unassigned

Bug Description

Tested on 7.0 (r4013) and trunk (r3816) using Google Chrome 28.0.1500.95 (Linux amd64)

Current behaviour of the many2one field in a list view (eg adding SO lines in a quotation), typing in a search query with results and then deselecting the field will result in the first search result to be populated automatically. When quickly adding SO lines this is a useful feature.

However when you type a search query and select "Search More...", this results in the field losing focus and also populates the first search result in the field as well as bringing up the search dialogue. This may be misleading, especially if you close the search dialogue without selecting anything.

I propose that the behaviour of the "Search More..." dialogue should result in the many2one field being left blank until a result is actually selected in the dialogue.

Thanks,
Craig

Revision history for this message
Craig Gowing (credativ) (craiggowing) wrote :

Fix typo in description.
Linked branch off 7.0 with a proposed fix.

description: updated
Revision history for this message
Twinkle Christian(OpenERP) (tch-openerp) wrote :
Changed in openerp-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Medium
status: New → Confirmed
Changed in openerp-web:
assignee: OpenERP R&D Web Team (openerp-dev-web) → Nicolas V.(OpenERP) (niv-openerp)
Revision history for this message
Nicolas Vanhoren (OpenERP) (niv-openerp) wrote :

Well, actually there is no "good" behavior. Setting the field blank could also be misleading.

So, I'll consider this is a personal taste matter and I prefer to not alter that behavior.

Changed in openerp-web:
status: Confirmed → Invalid
Revision history for this message
Stefan Rijnhart (Opener) (stefan-opener) wrote :

Thanks Nicolas for sharing your insight. Would it be possible to set this to Opinion, not invalid?

FWIW, I do share the submitter's opinion.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.