Global Search: find any record from the command palette (Ctrl+K)
by Aerya IT Solutions https://aerya.net$ 54.79
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Global Search: find any record from the command palette (Ctrl+K)
Find any record from one box: press Ctrl+K and type *, or click the magnifier in the top bar, then a few letters. Contacts, products, orders, invoices, tasks and any model you choose come back grouped by model, and one click opens the record.
Opens the record with Enter, or in a new tab with Ctrl+Enter
Respects access rights, record rules and companies
Lets the administrator choose models, fields and groups
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
Screenshots of Odoo 19 Enterprise with the data of a fictitious company.
grouping, order and limits, a model the user cannot read, record rules and active companies, fields and configurations restricted to groups, and tours for the top bar button, Ctrl+K, a user without access and the settings
no warnings, on the four versions
Community and Enterprise, no other module needed
The problem: the record is somewhere, but in which app?
A customer calls with an order number, a supplier sends a reference, a colleague gives only an e-mail address. Is it a contact, a sales order, an invoice, a task? People open an app, search, find nothing, open the next app and try again. The more apps are installed, the longer the hunt.
What the module does
Global Search puts one search box on Odoo's command palette. Press Ctrl+K (Command+K on a Mac) and type *, or click the magnifier the module adds to the top bar, then type a name, a number, an e-mail or a reference. Every searchable model answers at once, one header per model, and one click opens the record.
How it works, step by step
- Install the module. At installation it adds the usual models of the installed apps: contacts, products, sales and purchase orders, customer invoices, vendor bills, transfers, leads, projects, tasks, helpdesk tickets and employees, with their labels in every installed language.
- Open the search. Press Ctrl+K from any screen and type *, or click the magnifier in the top bar.
- Type at least two characters. The text is looked for anywhere in the fields, without case, like the search box of a list.
- Read the results. Each model has its own header, and each result has a second line (the e-mail of a contact, the customer of an order, a reference) so two records with the same name are easy to tell apart.
- Open the record. Arrow keys move, Enter opens the record, Ctrl+Enter opens it in a new browser tab.
- See all the matches. When a model has more matches than it shows, the last line of its group opens the full list filtered on the same text, ready to sort, group, filter further or export.
Details that matter
- Your rights apply. The search runs with the rights of the user who types. Models the user cannot read, records hidden by record rules, fields restricted to other groups and companies that are not active are never searched and never shown. The second line shows the name of a linked record the way Odoo's lists show it.
- The limits. Archived records are not searched. The search stops at 100 lines (records and show-all lines), the most the command palette shows; the first models of the list come first.
- A broken model does not break the search. A searchable model that stops working (a field removed by an uninstall, for example) is skipped and logged, and the other models still answer.
- Large databases. On very large tables, a trigram index on the searched columns (PostgreSQL pg_trgm) makes the search faster.
- Changes while users work. A model added while a user is working gets its header the next time the user opens the search; a renamed one keeps its old header until the page is reloaded.
Settings and access
Administrators open Settings > General Settings > Global Search. Load suggested models adds the usual models of the installed apps; it runs once at installation, so run it again after installing a new app or a new language. Searchable models (also under Settings > Users & Companies > Global Search) lists them in the order of the headers. For each model you set the label of its header, the fields the text is looked for in (text, notes and many2one fields; a many2one field matches on the name of the linked record), the field shown as the second line, how many results to show (1 to 20), an extra filter (for example customer invoices only) and, optionally, the groups that may search it, such as vendor bills for the accounting team. A filter that is not a valid domain, or a field that cannot be searched, is refused.
What it does not do
- It does not search archived records, a model with no records, or models the user cannot read.
- It needs at least two characters, and it shows at most 100 lines in all.
- It does not search inside attachments or documents: it searches the fields you choose on the models you choose.
Requirements
Odoo 17, 18, 19 and 20, Community and Enterprise, with no other module needed. It has Python code, so it runs on Odoo.sh and on-premise, not on Odoo Online. Languages: English, Spanish and Romanian.
Questions
What do I type to search records?
Press Ctrl+K, then type * followed by your text. You can also click the magnifier in the top bar.
Can users see records they have no access to?
No. The search uses each user's own rights, record rules and active companies.
Can I add my own model?
Yes. Add any model of your database to the list of searchable models and choose its fields.
Can I keep a model for some teams only?
Yes. Set the groups that may search it.
I installed a new app. Why is it missing?
Press Load suggested models in General Settings to add the models of the new app.
What happens if I uninstall it?
The command palette goes back to its normal behaviour. No record is changed.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 20, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 701 |
| Technical Name |
aerya_global_search |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module