Multi-Value Search
Paste a column of order numbers, references or names into any search bar and get every record that matches one of them, in one facet, with a list of the values that matched nothing.
| Odoo | 17.0, 18.0, 19.0, 20.0 |
| Editions | Community, Enterprise |
| Works with | Web and Base Setup (in every database). Works in any app's list and kanban views. |
| Licence | OPL-1, 21 EUR |
| Tests | 10 automated, run on every version |
| Module | search_ |
The situation
A customer mails a spreadsheet with twelve order numbers, or finance asks about ten invoices. In standard Odoo the search bar takes one value at a time: you type S00004, pick Order, type S00007, pick Order again, and so on. Paste the whole column and the text input drops the line breaks, so Odoo looks for one long value and finds nothing.
With this module you paste the column as it is. The line breaks become separators, the dropdown offers Search Order for: 12 values, and one facet (Order: 12 values) lists every order that matches one of them. A notice then names the values that matched no record, such as S00031 and S00045, with a button to copy them back to your sheet.
What it adds
Getting started
Open Apps, clear the Apps filter, search for Multi-Value Search and click Activate. It only needs Web and Base Setup, which every database has, and it works in every app that has list or kanban views. Reload open browser tabs after installing.
Apps › search_multi_value_paste › Activate
The feature is on after install with exact match. To change it, go to Settings, find the Search block and untick Multi-Value Search or set the Default match. Users choose their own mode in their Preferences under Multi-Value Search. Changes apply after a page reload.
Settings › General Settings › Search
Copy a column of references, open the list, click the search bar and paste. Pick the field to search in, or press Enter for the first one. Use the Match line to switch between exact and contains before you pick. Remove the facet like any other to start again.
Fine print
Log
Can it search a field that is not in the dropdown?
It uses the fields of the view's search panel; tell us which field you need and we'll tell you how to add it.
Email odoo.expert.111@gmail.com
Also by Awins
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