OdooWiki OCA HUB

Feature-rich select boxes

website_select2 folder_open OCA/website open_in_new
Website/Website License: LGPL-3

This module applies select2 to select elements on the website or portal, allowing users to incrementally search within the available options:

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Adds searchable, feature-rich dropdowns to select boxes on Odoo websites and portals. Dropdowns with at least six options automatically become searchable, so visitors can type to find an option instead of scrolling.

This module changes how dropdown (select) fields behave on public website and portal pages. Instead of a plain list, visitors get a searchable box where they can start typing to filter the available choices.

  • It applies automatically to select boxes that contain at least six options, so short lists stay as normal dropdowns.
  • A select box can be forced to use the enhanced behaviour even with fewer options by adding the select2-force class.
  • A select box can be excluded from the enhancement by adding the select2-disable class.
  • The look and feel follows the Bootstrap 5 theme used by the website, so the searchable boxes blend in with the rest of the page.
  • Extra options for a specific select box can be supplied through a select2-options data attribute on the element.

It does not add any new menus, database models, reports, emails or scheduled actions. It only affects the front-end presentation of existing select fields on website and portal pages, and it depends on the web module. Because the module only ships front-end assets and a public widget, no back-office screens are changed.

Depends on

web

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

To use this module, you need to:

  • Go to /my/account
  • Observe that ie. the country dropdown is searchable

Advanced usage:

  • To disable select2 on some specific select element, set class select2-disable
  • To force select2 on a select elements with few options, set class select2-force
  • To pass custom options to select2 for some specific select element, set attribute data-select2-options="{...}"

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.