The many2one lookup widget ignores domain for autosearch
Bug #670899 reported by
James Jesudason
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical OpenERP |
Fix Released
|
High
|
ksh (Axelor) | ||
Odoo Web Client |
Fix Released
|
Medium
|
OpenERP R&D Web Team |
Bug Description
When using a many2one field that has a domain applied, the pop-up window correctly uses the domain (when the magnifying glass icon is clicked). However, the web client has an auto-search feature that displays a dropdown list of values when a user types in just a few characters and pauses. The auto-search lookup ignores the domain on the field and displays all records that characters that match.
This means that users can accidently select values in the many2one list that they should not be allowed to do. This problem does not occur in the GTK client.
bzr trunk revno: 3800
Related branches
lp:~openerp-dev/openobject-client-web/m2o-autocomplete
Rejected
for merging
into
lp:openobject-client-web/trunk
- Krisztian Eyssen (community): Approve
- Xavier (Open ERP) (community): Needs Fixing
-
Diff: 52 lines (+25/-4)1 file modifiedaddons/openerp/static/javascript/m2o.js (+25/-4)
Changed in canonical-openerp: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in openobject-client-web: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → OpenERP SA's Web Client R&D (openerp-dev-web) |
Changed in canonical-openerp: | |
status: | Confirmed → Fix Committed |
Changed in canonical-openerp: | |
status: | Fix Committed → Fix Released |
milestone: | none → timesheets-prod |
To post a comment you must log in.
Hello,
Hereby attaching patch for the bug,
@sma Please test this code once again before committing to branch.