bemade-addons/recursive_tree_view
2024-10-30 15:01:42 -04:00
..
models [ADD] recursive_tree_view: new module for hierarchical models 2024-10-30 12:11:55 -04:00
rng [ADD] recursive_tree_view: new module for hierarchical models 2024-10-30 12:11:55 -04:00
static recursive_tree_view: make parent field active in views where it isn't if they're recursive 2024-10-30 15:01:42 -04:00
__init__.py [ADD] recursive_tree_view: new module for hierarchical models 2024-10-30 12:11:55 -04:00
__manifest__.py recursive_tree_view: make parent field active in views where it isn't if they're recursive 2024-10-30 15:01:42 -04:00
hierarchy-svgrepo-com.svg recursive_tree_view: add icon, images and docs 2024-10-30 14:38:39 -04:00
README.md recursive_tree_view: add icon, images and docs 2024-10-30 14:38:39 -04:00
validation.py [ADD] recursive_tree_view: new module for hierarchical models 2024-10-30 12:11:55 -04:00

Recursive Tree View

Bemade Inc.

Copyright (C) 2023-June Bemade Inc. (https://www.bemade.org). Author: Marc Durepos (Contact : marc@bemade.org)

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

Overview

The Recursive Tree View module for Odoo allows users to easily visualize hierarchical data structures in Odoo list (tree) views. With this module, you can mark a tree view as recursive, enabling the expansion of descendants of a parent record in a seamless and user-friendly way.

Features

  • Expand and collapse descendants directly in tree views.
  • Mark specific tree views as recursive to represent hierarchical data structures.
  • Enhance the visualization of complex relationships, making it easier to navigate and understand.

Configuration

  1. Install the module in Odoo.
  2. Configure the desired tree views to be recursive by modifying the view definition. Simply add the attribute recursive="1" (or true or True) to the tree element.

Usage

  1. Navigate to the model with the hierarchical structure (e.g., organizational units, product categories).
  2. Expand a parent record in the tree view to visualize its descendants.
  3. Use the expand/collapse functionality to navigate the entire hierarchy.

Technical Details

  • 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