[IMP]Add parent-id attribute to get childrens of that parentid and show selected parent's childrens rather than else.
lp bug: https://launchpad.net/bugs/1183156 fixed bzr revid: bth@tinyerp.com-20130705121036-0pn454ts3z9wkwxr
This commit is contained in:
@@ -684,7 +684,8 @@
|
||||
<tr t-name="TreeView.rows"
|
||||
t-foreach="records" t-as="record"
|
||||
t-att-id="'treerow_' + record.id"
|
||||
t-att-data-id="record.id" t-att-data-level="level + 1">
|
||||
t-att-data-id="record.id" t-att-data-level="level + 1"
|
||||
t-att-data-parent-id="parent_id">
|
||||
<t t-set="children" t-value="record[children_field]"/>
|
||||
<t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/>
|
||||
<t t-set="rank" t-value="'oe-treeview-first'"/>
|
||||
|
||||
Reference in New Issue
Block a user