Allows the viewing of hierarchical models (i.e. parent-child relationships) directly in a tree view. Simply add the recursive attribute to the tree tag with `recursive="1"` or `recursive="true"` or `recursive="True"`. Parent-child field is autodetected from the model based on the _parent_name field which is standard in the Odoo ORM. Currently there is no option for expanding all children, but this may be added in future versions.
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
#
|
|
# 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,
|
|
# version 3.
|
|
#
|
|
# For full license details, see https://www.gnu.org/licenses/lgpl-3.0.en.html.
|
|
#
|
|
# 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.
|
|
#
|
|
{
|
|
"name": "Recursive Tree View",
|
|
"version": "17.0.0.0.1",
|
|
"summary": "Adds the ability to mark a tree view as recursive, to expand "
|
|
"descendants of a parent record.",
|
|
"category": "Technical",
|
|
"author": "Bemade Inc.",
|
|
"website": "http://www.bemade.org",
|
|
"license": "LGPL-3",
|
|
"depends": ["web"],
|
|
"data": [],
|
|
"assets": {
|
|
"web.assets_backend": [
|
|
"recursive_tree_view/static/src/**/*",
|
|
]
|
|
},
|
|
"installable": True,
|
|
"application": False,
|
|
}
|