Skip to content

[18.0][FIX] base_name_search_improved: Call the name_search() method with the appropriate limit#3660

Draft
victoralmau wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-base_name_search_improved-TT63353
Draft

[18.0][FIX] base_name_search_improved: Call the name_search() method with the appropriate limit#3660
victoralmau wants to merge 1 commit into
OCA:18.0from
Tecnativa:18.0-fix-base_name_search_improved-TT63353

Conversation

@victoralmau

Copy link
Copy Markdown
Member

Call the name_search() method with the appropriate limit

It is important to call the name_search() method with the appropriate limit so that the filter is truly effective

Example use case:

  • Thousands of products
  • We apply filter A + smart_search = B
  • By default, name_search() applies limit=100, so we will only get a total of 100 records to build the domain in _search_smart_search()
  • When applying the A filter, the smart_search domain will return some incorrect records (4, for example); however, if the total number of possible records were specified as the limit, the correct domain would be returned (20 possible records, for example)

@Tecnativa TT63353

…he appropriate limit

It is important to call the name_search() method with the appropriate limit so that the filter is truly effective

Example use case:
- Thousands of products
- We apply filter A + smart_search = B
- By default, name_search() applies limit=100, so we will only get a total of 100 records to build the domain in _search_smart_search()
- When applying the A filter, the smart_search domain will return some incorrect records (4, for example); however, if the total number of possible records were specified as the limit, the correct domain would be returned (20 possible records, for example)

TT63353
@OCA-git-bot OCA-git-bot added series:18.0 mod:base_name_search_improved Module base_name_search_improved labels Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:base_name_search_improved Module base_name_search_improved series:18.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants