[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:
bth-openerp
2013-07-05 17:40:36 +05:30
parent 7e4776f2f2
commit 19ae69201c
2 changed files with 13 additions and 12 deletions
+2 -1
View File
@@ -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'"/>