Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion base_name_search_improved/models/ir_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ def _compute_smart_search(self):
@api.model
def _search_smart_search(self, operator, value):
if value and operator in ALLOWED_OPS:
total_items = self.search_count([])
matching_records = self.with_context(
force_smart_name_search=True
).name_search(name=value, operator=operator)
).name_search(name=value, operator=operator, limit=total_items)
if matching_records:
record_ids = [record[0] for record in matching_records]
return [("id", "in", record_ids)]
Expand Down
Loading