diff --git a/recursive_tree_view/README.md b/recursive_tree_view/README.md new file mode 100644 index 0000000..5d6b053 --- /dev/null +++ b/recursive_tree_view/README.md @@ -0,0 +1,42 @@ +# Recursive Tree View + +Bemade Inc. + +Copyright (C) 2023-June Bemade Inc. ([https://www.bemade.org](https://www.bemade.org)). +Author: Marc Durepos (Contact : [marc@bemade.org](mailto\: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](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](https://www.gnu.org/licenses/lgpl-3.0.en.html) diff --git a/recursive_tree_view/description/icon.png b/recursive_tree_view/description/icon.png new file mode 100644 index 0000000..e14b9b2 Binary files /dev/null and b/recursive_tree_view/description/icon.png differ diff --git a/recursive_tree_view/description/images/collapsed.png b/recursive_tree_view/description/images/collapsed.png new file mode 100644 index 0000000..21c57f6 Binary files /dev/null and b/recursive_tree_view/description/images/collapsed.png differ diff --git a/recursive_tree_view/description/images/expanded.png b/recursive_tree_view/description/images/expanded.png new file mode 100644 index 0000000..1643487 Binary files /dev/null and b/recursive_tree_view/description/images/expanded.png differ diff --git a/recursive_tree_view/description/images/recursive-tree.png b/recursive_tree_view/description/images/recursive-tree.png new file mode 100644 index 0000000..1d48239 Binary files /dev/null and b/recursive_tree_view/description/images/recursive-tree.png differ diff --git a/recursive_tree_view/description/index.html b/recursive_tree_view/description/index.html new file mode 100644 index 0000000..7624f9a --- /dev/null +++ b/recursive_tree_view/description/index.html @@ -0,0 +1,97 @@ + + +
+ + +
+ Author: Bemade Inc. (Marc Durepos)
+Website: www.bemade.org
+License: GNU Lesser General Public License (LGPL-3)
+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. +
+ +
+
+ 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. +
+