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
    • Artificial Intelligence
    • 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
    • Affiliate Program
    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. Productivity
  3. Hierarchy Tree Selector (Parent/Child Many2one) v 17.0
  4. Sales Conditions FAQ

Hierarchy Tree Selector (Parent/Child Many2one)

by Cerevantix Technologies https://cerevantix.com
Odoo

$ 110.60

v 17.0 Third Party
Apps purchases are linked to your Odoo account, please sign in or sign up first.
Versions 17.0 18.0 19.0 20.0
You bought this module and need support? Click here!
Versions 17.0 18.0 19.0 20.0
  • Description
  • Manifest
  • License
✓ Odoo.sh✓ On-Premise✗ Odoo Online
CEREVANTIX TECHNOLOGIES

Turn flat Many2one lists into a living hierarchy tree

Replace Odoo's flat Many2one dropdown with an expandable, searchable, keyboard-navigable tree selector for product categories, stock locations, cost centers, and any other parent-child relation.

THE PROBLEM

Deeply nested data — product categories, stock locations, charts of accounts, cost centers — collapses into one long alphabetical list in Odoo's native Many2one dropdown. Users lose all sense of where a record sits in the hierarchy, scroll through hundreds of similarly named entries, and regularly pick the wrong parent, corrupting downstream reports.

THE SOLUTION

Hierarchy Tree Selector renders any self-referential Many2one as a true expandable tree with in-line search, full keyboard navigation, and an always-visible breadcrumb of the selected path. Point it at any hierarchical field with one view option and it works — no custom code, no per-field setup beyond a widget attribute.

FREE WITH EVERY PURCHASE

This app speaks your language.

Tell us the language your team works in and we translate this module for you, free of charge — so everyone works in the language they know best.

Request my free translation  →

No hidden fees. No subscription.

BUILT IN
English
Ready the moment you install.
TRANSLATED FOR YOU — FREE, ON REQUEST
Deutsch
Français
Español
Italiano
Português
Nederlands
Svenska
Norsk
Suomi
Polski
Română
Български
Hrvatski
Lietuvių
Eesti
Українська
Русский
Türkçe
Português (Brasil)
Español (Latinoamérica)
العربية
日本語
Don’t see yours? Just name it.
HOW IT WORKS 1Buy the app → 2Email your language to support@cerevantix.com → 3Get your translation, free
CAPABILITIES

Everything the flat dropdown couldn't do

Every capability below is implemented in the module.

01

Hierarchical Tree Dropdown

Any self-referential Many2one renders as an expandable tree instead of a flat autocomplete list, with a single widget="hierarchy_m2o" attribute.

02

Zero-Code Reuse On Any Field

Point the widget at any parent field via a view option and it works on that hierarchy — no Python, no per-field development.

03

Pre-Wired On Product Categories & Stock Locations

The tree selector is already enabled on Product Category and Stock Location parent fields the moment the module is installed.

04

In-Tree Search With Path Reveal

Type to filter the tree; matching nodes surface instantly with their full ancestor path expanded, so users jump straight to the right record.

05

Full Keyboard Navigation

Arrow keys move, expand, and collapse; Enter selects; Escape closes — high-volume data entry never needs the mouse.

06

Visual Depth Indicators & Breadcrumb

Indentation shows tree depth at a glance, and the selected value always displays its full ancestor breadcrumb — no more guessing which "Chairs" you picked.

07

Configurable Default Expansion Level

Admins choose whether a tree opens fully collapsed, fully expanded, or expanded to a given depth — a single view option keeps large trees manageable.

08

DOM-Lazy Rendering For Performance

Data loads once; only expanded branches are painted to the page, so trees with hundreds of nodes and many levels stay responsive.

09

Inline Read-Only Hierarchy Chart

The included hierarchy_m2o_chart variant shows a fully expanded, read-only tree that visualizes exactly where the selected node sits.

WORKFLOW

How it works

1

Enable the widget

Add widget="hierarchy_m2o" to any self-referential Many2one field in a view and point options at its parent field.

2

Browse or search the tree

Click to open the dropdown, expand or collapse branches, or type to filter and jump straight to a matching node.

3

Select with keyboard or mouse

Arrow keys and Enter, or a click, pick the exact node; the breadcrumb confirms the full path before you move on.

4

See it work out of the box

Product Categories and Stock Locations already use the tree selector, and two demo models let you try every feature immediately.

SCREENSHOTS

See it in action

Every screen below is a live, install-and-go feature of this module.

COST CENTER HIERARCHY
Cost Center list with complete name path, code, and entry count

Cost Center list view with complete name path, code, parent, and a live entry count per center.

Cost Center form using the hierarchy_m2o widget on Parent

Cost Center form — the Parent field uses the hierarchy_m2o widget instead of a flat dropdown, with an inline Children list below it.

hierarchy_m2o dropdown open showing an expandable searchable tree

The hierarchy_m2o dropdown open on a Cost Center: expandable branches, in-tree search, and depth-indented rows.

COST ENTRY SHOWCASE
Cost Entry list showing center, category, location, and amount

Cost Entry list showing the linked cost center, product category, stock location, and amount for every entry.

Cost Entry form with three hierarchy selectors and an inline chart

Cost Entry form with three independent hierarchy_m2o selectors (cost center, product category, stock location) plus an inline read-only hierarchy_m2o_chart of the selected cost center.

hierarchy_m2o dropdown open on the Cost Entry form

The hierarchy_m2o dropdown open on the Cost Entry form, filtering the tree as you type.

PRE-WIRED ON PRODUCT CATEGORIES & STOCK LOCATIONS
Product Category form with the hierarchy_m2o widget on Parent Category

Product Category's native Parent Category field, now rendered with the hierarchy_m2o tree widget — enabled out of the box.

Stock Location form with the hierarchy_m2o widget on Parent Location

Stock Location's native Parent Location field with the hierarchy_m2o tree widget pre-wired for multi-warehouse structures.

QUESTIONS

Frequently asked

Does this replace Odoo's standard Many2one field?

No data migration is required. It is a drop-in field widget: add widget="hierarchy_m2o" to any existing self-referential Many2one in a view and it renders as a tree instead of a flat list; the underlying field and data are untouched.

Which Odoo hierarchies does it work with out of the box?

Product Categories and Stock Locations are pre-wired the moment you install the module. It also ships two demo models (Cost Centers and Cost Entries) so you can see it in action immediately, and it works on any other self-referential Many2one you point it at via a single view option.

How does it handle large or deep hierarchies?

The tree loads its data once and renders only expanded branches, so hierarchies with hundreds of nodes or many levels of depth stay responsive; collapsed branches are never painted to the page.

Can I use it without a mouse?

Yes. Arrow keys expand, collapse, and move between nodes, typing filters the tree via search, and Enter selects the focused node — the whole flow works from the keyboard.

Get in Touch

Have questions or need customization? Every purchase includes 30 days of free support — we are here to help.

@

Email Us

support@cerevantix.com

We usually reply within one business day.

↗

Visit Our Website

www.cerevantix.com

Explore our apps, services, and portfolio.

cerevantix .

Empowering growth through technology.

Expandable, searchable, keyboard-navigable tree selector for any self-referential Many2one field — pre-wired on Product Categories and Stock Locations.

Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies • Inventory (stock)
• Discuss (mail)
Lines of code 872
Technical Name cerevantix_many2one_hierarchy_parent_child_m2o
LicenseOPL-1
Websitehttps://cerevantix.com
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

  • 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 or have a question related to your purchase, please use the support page.
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