Fix search in context : Must call name_search in all cases
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
Changed in openobject-client-web: | |
status: | Fix Committed → Fix Released |
Thanks for the detailed bug report. The fix has been commited in both 4.2 and trunk version.