← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 715773] Re: [6.0] web client should use exact match search (=) for searching on fields.selection

 

You can reproduce the bug with this basic module:
lp:~jba-openerp/openobject-server/trunk-bug-715773

You'll see in the server log it generates:
[2011-02-21 20:16:23,112][?] DEBUG_RPC:params: 'bug715773.bug',
[2011-02-21 20:16:23,112][?] DEBUG_RPC:params: 'search',
[2011-02-21 20:16:23,112][?] DEBUG_RPC:params: [('state', 'ilike', 'draft')],


** Changed in: openobject-client-web
       Status: Invalid => Triaged

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/715773

Title:
  [6.0] web client should use exact match search (=) for searching on
  fields.selection

Status in OpenERP Web Client:
  Triaged

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.



References