Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Property Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
      • Get a Tailored Demo
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +32 2 290 34 90
    • Get a Tailored Demo
  • Pricing
  • Help
  1. APPS
  2. Extra Tools
  3. Clear All Filters Button v 18.0
  4. Sales Conditions FAQ

Clear All Filters Button

by Naim OUDAYET https://www.oudayet.com
Odoo
v 18.0 Third Party 18
Download for v 18.0 Deploy on Odoo.sh
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 57
Technical Name no_clear_all_filters
LicenseLGPL-3
Websitehttps://www.oudayet.com
Versions 16.0 17.0 18.0 19.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Lines of code 57
Technical Name no_clear_all_filters
LicenseLGPL-3
Websitehttps://www.oudayet.com
Versions 16.0 17.0 18.0 19.0

Clear All Filters

One click to wipe every active filter, group-by, favorite, and search query in the search bar

Odoo 18 FREE Zero Config

Five Filters, Five Tiny X Buttons?

In standard Odoo, every active filter, group-by, and favorite has its own little x. Clearing the search bar to start over means hunting them down one by one.

Without this module

Country = France x State = Sale x Salesperson x This Month x

Click X on every chip. Four filters → four clicks. Tedious every single time.

With this module

Country = France State = Sale Clear All

A single button next to the search bar. One click. Search bar empty. Done.

Four Things It Does Well

Lightweight, focused, no configuration.

⚡
One-Click Reset

Wipes every active filter, group-by, favorite, and typed query in a single click. No partial state.

👀
Auto-Hide

The button only appears when there is something to clear. A clean view stays clean.

🌎
Every View

List, kanban, pivot, graph, calendar - anywhere Odoo renders the standard search bar, the button is there.

💫
Zero Server Load

Pure frontend OWL patch on the SearchBar component. No Python, no RPC, no database changes.

Uses Odoo's native searchModel.deactivateGroup() + clearQuery(). No private API.

Real-World Scenarios

Sales pipeline review

After drilling down by salesperson, stage, and date range, one click brings the full pipeline back instead of hunting four separate close buttons.

Inventory triage

Switch between "low-stock by warehouse" and the global product list without manually undoing every group-by and favorite.

Accounting month-end

Repeatedly toggling period, journal, and partner filters during reconciliation. The Clear All button skips the cleanup ritual.

Helpdesk ticket sweeps

Going from "my open tickets, this week, high priority" back to the team-wide queue is now a single button instead of three deactivations.

How It Works

1
Apply your filters

Use the search bar normally - filters, group-bys, favorites, and free-text queries. The Clear All button appears the moment something is active.

2
Click Clear All

A single click deactivates every facet through Odoo's native searchModel API and clears any typed query.

3
Search bar resets

One re-render, one fresh query. The button hides itself again until the next time you build a filter stack.

Installation

Two steps. No Python dependencies, no database changes, no configuration.

Step 1 - addons path

Drop the module in
cp -r no_clear_all_filters /path/to/addons/

Place the no_clear_all_filters folder in any directory listed in your Odoo addons_path.

Step 2 - in Odoo

Install the module

Apps menu → remove the Apps filter → search "Clear All Filters" → Install. The button appears next to the search bar everywhere immediately.

Works With Every Search Bar

No allow-list. No per-view setup. The OWL patch extends Odoo's standard SearchBar component.

List Views
Kanban Views
Pivot & Graph
Calendar
Activity
Any Custom View

Views without a search bar (forms, dashboards) are simply not affected - no error, no broken layout.

What This Module Doesn't Do

Honest scope. Here's what's out of reach.

✗  Default-domain reset

Filters declared in the action's context as defaults reapply on the next render. The button clears user-applied facets, not action-level defaults.

✗  Selective clear

It's all or nothing. There is no "clear filters but keep group-bys" mode - use the per-facet x chip when you only want to remove one.

✗  Per-user opt-out

The button is shown to every user who can see the search bar. There is no per-user toggle to hide it.

✗  Undo

Once you click Clear All, the previous facet stack is gone. Re-pick what you need from the favorites menu if you want it back.

⚠  Heavy-customization themes

The button is appended inside the standard o_cp_searchview container. A theme that replaces the search bar entirely will need its own integration point.

⚠  Other SearchBar-patching modules

Two modules can each patch() the SearchBar prototype safely, but conflicting renders of the same xpath may collide. Test once if your stack already extends the search bar.

🛡 A Note on Odoo's searchModel

The button drives the same public searchModel API that Odoo's own facet-close buttons use - deactivateGroup() per facet, then clearQuery() for the typed text. Notifications are batched with the blockNotification flag so the view re-renders only once at the end. As long as Odoo keeps that public API stable, the module keeps working without per-version forks. Each version branch ships its own JS test suite to catch the day that contract changes.

FAQ

Does this clear my saved favorites permanently?

No. The button only deactivates favorites in the current view. Your saved favorites stay in the favorites menu, ready to re-apply.

Will it clear the action's default filter?

User-applied facets are cleared. Filters declared in the action's context as defaults reapply on the next render - that's a server-side decision, not a client-side facet.

Does it work in pivot, graph, and kanban views?

Yes. The patch is on the shared SearchBar component, so every view that uses Odoo's standard search bar gets the button.

What about Odoo 16 / 17 / 18?

This branch targets Odoo 18 and uses the v18 searchModel API surface. Earlier-version branches will follow if there's demand.

Does it conflict with other modules that extend the search bar?

Multiple modules can patch() SearchBar.prototype simultaneously - that's the supported Odoo pattern. Conflicts only arise if another module replaces the same xpath inside o_cp_searchview.

Will this break with future Odoo updates?

It uses the public searchModel.deactivateGroup() and clearQuery() methods. As long as those stay in their current form, the module keeps working. The shipped JS test suite catches regressions early.

Technical Details

Module
no_clear_all_filters
Version
18.0.1.0.0
Depends on
web
Python deps
None (pure frontend)
License
LGPL-3 (Free / Open Source)
Mechanism
patch() on SearchBar.prototype + xpath into o_cp_searchview
Test coverage
Hoot/QUnit JS suite (deactivate + clearQuery) + HttpCase wrapper

More Modules by Naim OUDAYET

Production-ready Odoo modules. Tested. Documented.

📄
PDF Preview Before Print

Preview any PDF report in a full-screen dialog before printing or downloading.

FREE
🔒
PDF Password Protection

Encrypt PDF reports with static or dynamic passwords. GDPR-friendly.

FREE
🔍
View All Modules

Browse the complete catalog of Odoo modules by Naim OUDAYET.

apps.odoo.com

Clear All Filters - Free, open source, Odoo 18
© Naim OUDAYET - LGPL-3 License

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with