Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 13 |
Technical Name |
many2one_pattern_search |
License | LGPL-3 |
Versions | 17.0 18.0 |
Many2x Autocomplete Pattern Search
Get advance version here: Pattern Search (also compatible with Odoo online)

ð¢ Available for Hire!
Looking for a skilled and reliable Odoo Developer to bring your business ideas to life? or to fix things? or to analyze unwanted results? or to do whatever in odoo
Letâs build something great together! I specialize in custom module development, ERP implementation, and performance tuning tailored to your needs.
ð¬ Hire Me wa.me/923482852693 /rajeelzahid
Overview
This module enhances the search behavior of many2x
fields in Odoo by introducing a pattern-based
search mechanism. Instead of relying solely on the default ilike
search, it allows users to search
by meaningful fragments of the name. This is particularly helpful in cases where records (e.g. employees) share
common prefixes like "Muhammad", enabling quicker and more intuitive access to relevant records.
Key Features
- Improves usability of
many2x
fields with large datasets - Supports pattern-based searching (e.g., "muhra" matches "Muhammad Rajeel")
- Context-aware as only applies when explicitly enabled
- Lightweight and non-intrusive to existing logic
- Compatible with all standard and custom models
How to Use
- In your form view XML, add
context="{'pattern_search': True}"
to themany2x
field definition. - Example:
<field name="employee_id" context="{'pattern_search': True}" />
Once enabled, the field will support pattern matching: typing muhra
will match "Muhammad Rajeel",
and rjl
will also return similar results even if the full name doesn't begin with it.
Please log in to comment on this module