Recursive Tree View
Author: Bemade Inc. (Marc Durepos)
Website: www.bemade.org
License: GNU Lesser General Public License (LGPL-3)
Overview
The Recursive Tree View module for Odoo allows users to easily visualize
hierarchical data structures in tree views. Mark a tree view as
recursive to enable expansion of descendants of a parent record,
enhancing the visualization of complex data.
Screenshots
Collapsed Tree
Expanded Tree
Features
- Expand and collapse descendants directly in tree views.
- Mark specific tree views as recursive to represent hierarchical
data.
- Improve navigation and understanding of complex relationships.
Configuration
- Install the module in Odoo.
- Configure the desired tree views to be recursive by modifying the
view definition. Simply add the attribute recursive="1" to
a given tree element to make it recursive.
Usage
- Navigate to the view marked as recursive.
- Click the arrow to the left of a parent record to
expand it and see its descendants.
- Use expand/collapse to navigate the hierarchy as desired
.
Technical
-
The module extends the `tree` view type to add recursive
behavior, allowing descendants to be dynamically loaded and
displayed.
- This feature is particularly useful for models that represent hierarchical relationships, such as categories, organizational units, or nested tasks.
- The module uses the field specified by `_parent_name` on the model, which is `parent_id` by default.
License
This program is under the terms of the GNU Lesser General Public License
(LGPL-3). For details, visit
https://www.gnu.org/licenses/lgpl-3.0.en.html.