← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 751197] Re: [Search] Many2one combobox implies discrete search for particular resource, but does substring search instead

 

Hello Stefan Rijnhart (Therp),

I have tested as your description with latest code of stable web client
and with trunk code too but did not get any problem. Its working fine as
expected with both of codes.

Please check the attachment video "m2o_search" for that.
There is three different country like "Africa", "Africa North" and "Africa South".
When I select only "Africa" than its give me only the records of that country not combine records from "Africa North" and "Africa South" because there should be different country.

So, I think there is not apply the 'like' operator as you said in
comment #1. It does apply "=" operator with m2o search.

Please note that Web client offers many2one widget so the query formed will be comprising of '=',
Where as in GTK they offer char widget so the query formed should be "ilike".

So if we stick on your view then we either need to change the widget to
char. which I feel does not seems feasible or GTK needs to change the
widget to many2one. For now I am converting the bug to "Wishlist".


** Changed in: openobject-client-web
   Importance: Undecided => Wishlist

-- 
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/751197

Title:
  [Search] Many2one combobox implies discrete search for particular
  resource, but does substring search instead

Status in OpenERP Web Client:
  New

Bug description:
  In the webclient, the search field for a many2one field provides a
  combobox with names of discrete resources, as well as a selection icon
  to select a discrete resource in a popup window. At the same time, the
  search field does allow the user not to select a discrete resource but
  leave his raw input as a search criterium. The latter implies a
  substring search, which is indeed the case. The former case, in which
  the user does select a single resource as a search criterium strongly
  implies a search on a uniqe resource. However, in this case the
  performed search is a substring search as well.

  Example:

  In my database, I search for partners in the Netherlands. Once I start
  to type something like 'Nethe', the combobox offers me the choice
  between Netherlands and Netherlands Antilles. If I select
  'Netherlands' from the dropdown options or select this resource
  through the selection icon, I would expect the resulting partners all
  to reside in this country, but instead I get partners in the
  Netherlands Antilles as well, because Netherlands is a substring of
  Netherlands Antilles.

  Checked against openobject-client-web/6.0 revision 4567



References