| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 328 |
| Technical Name |
o2b_edit_search_condition |
| License | OPL-1 |
| Website | https://www.o2btechnologies.com/ |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 328 |
| Technical Name |
o2b_edit_search_condition |
| License | OPL-1 |
| Website | https://www.o2btechnologies.com/ |
Edit Search Condition in Odoo
Enhance your Odoo search experience by editing filter conditions directly in the search bar. Double-click any facet value to remove it and modify your filters instantly.
Problem Statement
In standard Odoo, when you have multiple filter values in a search facet (e.g., Desk or Chair or Table), removing a single value requires clearing the entire filter and re-adding the values you want to keep. This process is time-consuming and disrupts workflow efficiency, especially when working with complex filters containing many values.
Solution Overview
This module introduces an intuitive double-click interaction that allows users to remove individual filter values from search facets. When you double-click on any facet value, it is instantly removed from the filter and placed in the search input field for easy modification, while all other values remain active in the filter.
Key Features
- Double-Click to Edit: Simply double-click on any facet value to remove it from the filter
- Value Preservation: All other values in the facet remain active and functional
- Instant Search Input: Removed value automatically appears in the search field for quick editing
- Domain Synchronization: Filter domain updates automatically to reflect remaining values
- Visual Feedback: Hover effects and animations provide clear interaction feedback
- Multi-Value Support: Works seamlessly with facets containing multiple filter values
- Odoo 19 Compatible: Fully tested and optimized for Odoo 19 framework
How It Works
Step 1: Apply Multiple Filters
Start by applying a filter with multiple values. For example, search for products with status "Desk or Chair or Table". The search bar displays all three values as a single facet.
Step 2: Hover Over a Value
Hover your mouse over any facet value (e.g., "Chair"). The value will highlight with a subtle background color, and a tooltip appears showing "Double-click to edit".
Step 3: Double-Click
Double-click on the value you want to remove. The value is instantly removed from the facet and automatically inserted into the search input field.
Step 4: Auto Update
The remaining values (e.g., "Desk or Table") stay active in the facet. The search domain updates automatically, and your records are filtered based on the remaining criteria.
Step 5: Modify & Reapply
Edit the value in the search input field if needed, or select a different option from the autocomplete suggestions. Press Enter to apply the new filter.
Benefits
- Time Savings: Eliminate the need to recreate complex filters from scratch
- Improved Productivity: Make filter adjustments in seconds, not minutes
- Better UX: Intuitive double-click interaction feels natural and responsive
- Reduced Errors: Keep existing filter values while modifying specific criteria
- Seamless Integration: Works with all standard Odoo search features
- No Training Required: Users understand the functionality instantly
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