diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-11-23 15:28:20 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-11-23 15:28:20 +0100 |
| commit | 7ad035a77477d421df33f74046e46fd0602c45f3 (patch) | |
| tree | 5d635192401cf658d173e70157008bbd54535868 /addons/web/static/src/xml | |
| parent | ccfadbdd90a344d7d134a8be48ca8b8d1e13cb26 (diff) | |
| parent | 78364434d9304aced2350452e55dcf135e3967e4 (diff) | |
[FIX] condition for displaying open/close arrow of tree views
failed to display it in the BOM structure screen even on nodes with children
lp bug: https://launchpad.net/bugs/877995 fixed
bzr revid: xmo@openerp.com-20111123142820-5o7wx3rqd5r18lgk
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index fce34e6ce9a..0ea257e7986 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -534,16 +534,17 @@ t-att-id="'treerow_' + record.id" t-att-data-id="record.id" t-att-data-level="level + 1"> <t t-set="children" t-value="record[children_field]"/> - <t t-set="has_children" t-value="children and children.length"/> + <t t-set="class" t-value="children and children.length ? 'treeview-tr' : 'treeview-td'"/> <td t-foreach="fields_view" t-as="field" t-if="!field.attrs.modifiers.tree_invisible" t-att-data-id="record.id" t-att-style="color_for(record) + (!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;' : '')" - t-att-class="!field_index and has_children ? 'treeview-tr' : 'treeview-td'"> + t-att-class="class"> <span t-if="!field.attrs.modifiers.invisible"> <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" /> </span> + <t t-set="class" t-value="'treeview-td'"/> </td> </tr> |
