Fix search in context : Must call name_search in all cases

Bug #296328 reported by Joël Grand-Guillaume @ camptocamp
4
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Undecided
Amit Mendapara

Bug Description

Hi,

I saw your fix for passing the global context in search form for the webclient.

My code wich worked into the GTK client still don't work with webclient... So I investigate the webclient code and found the problem.

In search.py, when there is no text into the cell, you don't call the name_search of the object. So, if I enter "e" for exemple, everything work well, because the name_search is called. But if nothing is in the cell and I press "F2" key, then it just display the list af all occurence found in the DB, without calling the name_serach function...

I don't know hy you take this option... I would suggest to call name_search even if the cell is empty => so if name_search have to filter on other criteria than the text of the cell (in my case, the filter is applied from context args), it will work properly...

Thnaks to fix it in Stable and trunk verrsion :)

Regards,

Joël

Revision history for this message
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote :
Revision history for this message
Amit Mendapara (cristatus) wrote :

Thanks for the detailed bug report. The fix has been commited in both 4.2 and trunk version.

Changed in openobject-client-web:
assignee: nobody → mendapara-amit
status: New → Fix Committed
Changed in openobject-client-web:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.