← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 715773] Re: [6.0] search on selection fields - ilike and index

 

The domain generated by the search view in the web client is wrong in the case of a selection field.
When I search records with state "draft", I want to search records where state = "draft" like with the GTK client. This will use the indexes in DB. (it cannot use indexes when you perform an "ilike" where query)

Anyway, the behavior is different with the GTK and web client. And it
should be fixed in the web client.

-- 
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] search on selection fields - ilike and index

Status in OpenERP Web Client:
  Invalid

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