Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
SKIP: oca-gen-addon-readme
- name: Check that all files generated by pre-commit are in git
run: |
newfiles="$(git ls-files --others --exclude-from=.gitignore)"
newfiles="$(git ls-files --others --exclude-standard)"
if [ "$newfiles" != "" ] ; then
echo "Please check-in the following files:"
echo "$newfiles"
Expand Down
88 changes: 0 additions & 88 deletions .gitignore

This file was deleted.

103 changes: 103 additions & 0 deletions web_searchpanel_toggle_all/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
==========================
Web Searchpanel Toggle All
==========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:dafb4ff59d9c2d10c134756a1d6bab278f1779e9be56eafe78052accac7a4561
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
:target: https://github.com/OCA/web/tree/18.0/web_searchpanel_toggle_all
:alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/web-18-0/web-18-0-web_searchpanel_toggle_all
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=18.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module let the user clear searchpanel "multi" filters by clicking
section title.

In Odoo ``searchpanel``, a ``filter`` in multi-select mode displays a
list of checkboxes. In mobile view, there is a "clear all" button, but
not in desktop view. This module simply adds a way to toggle checkboxes
all at once by clicking the section title.

Category sections (mode select="one") are left unchanged with their
"All" button.

**Table of contents**

.. contents::
:local:

Usage
=====

No configuration required.

In any view that uses a ``<searchpanel>`` with one or more ``<field>``
declared as ``select="multi"``, simply click on the section's title (the
bold, uppercased label above the checkboxes) to toggle all its values on
or off.

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_searchpanel_toggle_all%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Le Filament

Contributors
------------

- Hugo

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

.. |maintainer-Hugo-Trentesaux| image:: https://github.com/Hugo-Trentesaux.png?size=40px
:target: https://github.com/Hugo-Trentesaux
:alt: Hugo-Trentesaux

Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:

|maintainer-Hugo-Trentesaux|

This module is part of the `OCA/web <https://github.com/OCA/web/tree/18.0/web_searchpanel_toggle_all>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Empty file.
20 changes: 20 additions & 0 deletions web_searchpanel_toggle_all/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2026 Le Filament (<https://le-filament.com>)
{
"name": "Web Searchpanel Toggle All",
"summary": "Toggle all checkboxes in searchpanel filter in mode 'multi'.",
"version": "18.0.1.0.0",
"category": "Web",
"website": "https://github.com/OCA/web",
"author": "Odoo Community Association (OCA), Le Filament",
"maintainers": ["Hugo-Trentesaux"],
"license": "AGPL-3",
"depends": ["web"],
"assets": {
"web.assets_backend": [
"web_searchpanel_toggle_all/static/src/search_panel.esm.js",
"web_searchpanel_toggle_all/static/src/search_panel.xml",
],
},
"installable": True,
"application": False,
}
3 changes: 3 additions & 0 deletions web_searchpanel_toggle_all/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions web_searchpanel_toggle_all/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Hugo
7 changes: 7 additions & 0 deletions web_searchpanel_toggle_all/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
This module let the user clear searchpanel "multi" filters by clicking section title.

In Odoo `searchpanel`, a `filter` in multi-select mode displays a list of checkboxes.
In mobile view, there is a "clear all" button, but not in desktop view.
This module simply adds a way to toggle checkboxes all at once by clicking the section title.

Category sections (mode select="one") are left unchanged with their "All" button.
5 changes: 5 additions & 0 deletions web_searchpanel_toggle_all/readme/USAGE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
No configuration required.

In any view that uses a `<searchpanel>` with one or more `<field>` declared
as `select="multi"`, simply click on the section's title (the bold,
uppercased label above the checkboxes) to toggle all its values on or off.
Loading
Loading