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.
28 lines
471 B
CSS
28 lines
471 B
CSS
.o_recursive_expand_column {
|
|
width: 30px;
|
|
}
|
|
|
|
.o_expand_button {
|
|
border-color: transparent;
|
|
background-color: transparent;
|
|
}
|
|
|
|
button.o_expand_button[data-depth="1"] {
|
|
margin-left: 15px;
|
|
}
|
|
|
|
button.o_expand_button[data-depth="2"] {
|
|
margin-left: 30px;
|
|
}
|
|
|
|
button.o_expand_button[data-depth="3"] {
|
|
margin-left: 45px;
|
|
}
|
|
|
|
button.o_expand_button[data-depth="4"] {
|
|
margin-left: 60px;
|
|
}
|
|
|
|
button.o_expand_button[data-depth="5"] {
|
|
margin-left: 75px;
|
|
}
|