Wednesday, July 23, 2025
1 change · 17.0
Enhancements to existing features
Website search now avoids an unnecessary extra database check when the first search already provides enough information. This can make search-related pages load more efficiently without changing what users see.
Original PR description
Issue ----- Currently, we call `model.search()` and `model.search_count()` back-to-back, the second of which is unnecessary if there is no limit on the query. Solution ----- If we have no limit, directly take the length of the previously returned results to avoid an extra query. opw-4882609 Forward-Port-Of: odoo/odoo#218252