OdooWiki OCA HUB

Web Widget Child Selector

web_widget_child_selector folder_open OCA/web open_in_new
Uncategorised License: AGPL-3

This module allows to use a new widget for many2one fields that are made hierarchically. Now, you can navigate easily between the hierarchy.

When we are using readonly, the behaviour is similar than Many2one, but on edition we are able to select the parents and childs in order to navigate properly.

auto_awesome What this module does

AI-generated from the code · Odoo 15.0

Adds a new field widget for hierarchical many2one fields, letting users pick a record by browsing its parents and direct children instead of searching the whole list.

This module adds a new widget option for many2one fields that represent hierarchical data (records linked to a parent record). When a form uses this widget, the field behaves like a normal many2one when read-only, but in edit mode it shows a different selection control.

  • In edit mode, the field displays the current record's parent chain as clickable links separated by slashes, plus a list of the record's direct children as radio buttons.
  • Clicking a parent link or a child radio button immediately sets the field to that record.
  • A small cross icon lets the user clear the selected value.
  • The list of children can be filtered by a domain, and the text shown for each record can be controlled with a field option.

On the server side, the module extends the base model with helper methods that walk up the parent chain and search for direct children, returning their ids and display names. These helpers are called by the widget through an RPC request.

The widget is registered in the web client's field registry under the name child_selector, so it can be assigned to any many2one field whose model has a parent relationship. The module depends only on the web module and adds no new menus or database tables.

Depends on

web
Models and fields (1)
  • base · extends an existing model

Text generated by AI (DeepSeek) from reading the Odoo 15.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: 4 confirmed, 5 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 15.0

Use child_selector widget on a field. If necessary we can use child_selection_field on options in order to define which field we will show on edition only. For example, name instead of display_name.

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.