[6.0] web client should use exact match search (=) for searching on fields.selection
Bug #715773 reported by
Jacques-Etienne Baudoux
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Web Client | Status tracked in 6.0 | |||||
6.0 |
Fix Released
|
Low
|
OpenERP R&D Web Team | |||
Trunk |
Fix Released
|
Low
|
OpenERP R&D Web Team |
Bug Description
When you perform a search on a selection field in the web client, the generated expression doesn't use the correct operator "=" but "ilike"
it should be:
[('state', '=', 'draft')]
instead of
[('state', 'ilike', 'draft')]
First it is not correct and secondly, it's breaking the use of the indexes.
Related branches
lp://staging/~openerp-dev/openobject-client-web/trunk-bug-715773-sma
- OpenERP R&D Web Team: Pending requested
-
Diff: 19 lines (+6/-1)1 file modifiedaddons/openerp/controllers/search.py (+6/-1)
Changed in openobject-client-web: | |
status: | Invalid → New |
tags: | added: profserv |
Changed in openobject-client-web: | |
status: | Triaged → Confirmed |
status: | Confirmed → In Progress |
Changed in openobject-client-web: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
Hello Jacques-Etienne,
Search on a selection field with '=' Operator it searches with Specified pattern.
Where as the ' ilike ' operator it searches related with that pattern.
So, It is ok with ' ilike ' if you use it instead of '=' operator.
Thanks.