-
Committer:
Martin Trigaux
-
Date:
2014-01-29 13:22:40 UTC
-
mfrom:
(5214.1.6 partner-search)
-
Revision ID:
mat@openerp.com-20140129132240-eamnzs37k0i65gpe
[MERGE] [FIX] res_partner: name_search search in one pass
The original query did two passes (SQL query and orm search). This was a problem due to the limit parameter where the second query could reduce the number of results to a smaller number than the asked limit.
This code reproduces the orm _search behaviour to execute only one SQL query mixing both the ACL clauses and the complexe name_search without degrading the performances (removing the limit in the first query would have).