Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 630 |
Technical Name |
x2many_search_widget |
License | LGPL-3 |
Website | https://www.linkedin.com/in/neftalimich |
Versions | 16.0 17.0 18.0 |
Availability |
Odoo Online
Odoo.sh
On Premise
|
Lines of code | 630 |
Technical Name |
x2many_search_widget |
License | LGPL-3 |
Website | https://www.linkedin.com/in/neftalimich |
Versions | 16.0 17.0 18.0 |
Quick Search Widget for X2Many Fields
Search for records in one2many or many2many fields easly.

Looks exactly like the native Search Bar
Set multiple filters for your x2many fields.
Search all visible fields and all types: char, text, float, boolean, selections, many2one, many2many_tags.
Quick performance, does not query the database, only works with frontend.
Easy to use, you just need to choose the widget:
- one2many_search
- many2many_search
Free included widgets:
- section_and_note_one2many_search. Free complement
- stock_move_one2many_search. Free complement

Add or remove filters by field.
Exactly like native search bar...
You can select between every column in your list.

Works for each field.
Select an item to create filter.

Sub Options for one2many fields.
You can select a sub option from values in your list.

Sub Options for Integer, Float and Date.

Work with Dates as well.

Options for selection/boolean fields.

Filter many2many_tags too.

Switch between modes
There are two modes: "or"/"and".
switch it using hotkey alt + shift + w.
You can notice which mode is active by looking at the "search" icon.
Regular for "or", Plus for "and".

Works with any x2many field
Including "section and note one2many" and "stock moves one2many".

Save filter
Just add the property
keyStore="some_key".

filter "is set" or "is not set" (*new)
Write the word set to show it.

Kanban mode supported (*new)
Now supports kanban views.

See it in action:

X2Many search widget documentation
Configuration
- <field name="your_field_name" widget="one2many_search"/>
- <field name="your_field_name" widget="many2many_search"/>
Select specific fields (optional)
- <field name="skill_ids" "widget="one2many_search" searchFields="skill_id,title"/>
- <field name="skill_ids" "widget="one2many_search" searchFields="*columns,active"/>
*columns is a keyword and means that will add all visible columns.
Save filter in local storage (optional)
- <field name="skill_ids" "widget="one2many_search" keyStore="person_skills"/>
Switch between Modes "and"/"or"
Press hotkey Alt + Shift + W
Save filter
Press hotkey Alt + Shift + S
Changelog
- [2024-10-17] - SearchBar inside Wizard. (1.0.9)
- Bug fixed.
[2024-08-20] - Load Next Records. (1.0.8)
- Check hidden records improved.
[2024-06-22] - Minor Improvements. (1.0.7)
- A few little improvements.
[2023-07-11] - Save filter. (1.0.5)
- New save functionality added. keyStore="some_unique_key"
[2023-07-11] - Fix filter for new records. (1.0.4)
- Bug Fixed: A bug prevented filtering new records correctly.
[2022-02-12] - New operators: "≥", "≤", ">", "<". (1.0.3)
- New operators Added as an sub item.
- Minor improvements.
[2022-02-11] - Filter "and". (1.0.2)
- Press Alt + Shift + W to switch between modes "and"/"or".
- Minor improvements.
[2022-02-10] - Bug Fixes (1.0.1)
- Bug Fixed: duplicated key in items.
- Bug Fixed: Filter 0.0 Value.
[2022-02-09] - Release (1.0.0)
- Basic functionality.
Please log in to comment on this module