Back to Top

User Guide for Odoo Many2one Hierarchy Widget

Updated 9 October 2025

Introduction

Odoo Many2one Hierarchy Widget enhances usability of many2one fields by displaying data in a clear parent-child hierarchy. This visual structure makes it easier to select related records.

Users can quickly understand relationships between records, reducing chances of selecting incorrect entries. The hierarchy view streamlines data navigation and makes nested structures more intuitive.

Whether you’re organizing product types or managing organizational departments, Odoo Many2one Hierarchy Widget ensures more structured, organized, and accurate data selection.

Features

  1. Odoo Many2one Hierarchy Widget displays a clear hierarchy within many2one fields.
  2. Users can limit the number of records shown in the dropdown.
  3. It allows you to define the depth of the hierarchy, so that users see the relevant levels of data.
  4. The dropdown records can be sorted based on any existing field.
  5. The widget presents data in a structured parent tree view within the many2one dropdown.
  6. This improves data selection accuracy by helping users understand the context.

Installation

  1. Once you purchase Odoo Many2one Hierarchy Widget from Webkul store, you will receive a link to download module’s zip file.
  2. Extract file on your system after download finishes. As a result, you will be able to see a folder named- ‘wk_m2o_hierarchy_widget’
  3. Copy and paste this folder inside your Odoo Add-Ons path.
  4. Now, open Odoo App and click on Settings menu. Here, click on Activate Developer Mode.
  5. Then, open Apps menu and click on ‘Update Modules List.’
  6. In search bar, remove all filters and search ‘wk_m2o_hierarchy_widget
  7. You will be able to see a module in search results. Click on ‘Install’ to install it.

Workflow

  1. After installing Odoo Many2one Hierarchy Widget, you can display epartments in a hierarchical parent tree view by configuring the department field with the hierarchy widget in the employee form view.
Department section in a parent-tree view in Odoo Many2one Hierarchy Widget

2. In the same way, you can also display inventory stock locations in a hierarchical parent tree view by applying the hierarchy widget to the location field in the stock location form view.

Inventory Stock Location in a parent tree view in Odoo Many2one Hierarchy Widget

3. Similarly, product categories can be displayed in a hierarchy chart by applying the hierarchy widget to the category field in the product category form view.

Searching for an experienced
Odoo Company ?
Find out More
Product Category in Parent-Tree view in Odoo Many2one Hierarchy Widget

4. To set up the hierarchy widget, simply add it to the desired many2one field in the form view by using this syntax:

<field name=”your_field” widget=”wk_m2o_hierarchy_widget” options=”{‘parentId’: ‘parent_id_field_of_model’, ‘orderBy’: ‘any_existing_field’, ‘limit’: 10, ‘level’: 10}”/>

Syntax to add parent tree view

Need Help?

Hope you find guide helpful! Please feel free to share your feedback in the comments below.

If you still have any issues/queries, please create a ticket at the UV Desk.

In case of any further queries, contact us at our support mail.

Thanks for paying attention!!

Current Product Version - 1.0.0

Supported Framework Version - V19, V18, V17, V16

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

User Guide for Odoo Many2one Hierarchy Widget