summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-01-12 16:52:04 +0530
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-01-12 16:52:04 +0530
commit8d71421347c311558e07df5052922a7a1cfaaf7c (patch)
tree51f6422e7b9875b31bcc2dc007971e29a9a540d2 /addons/web/static/src/xml/base.xml
parent11d094b452d278f0af870f871c0c9f1d281ceac4 (diff)
[Fix]bug no.914515
lp bug: https://launchpad.net/bugs/914515 fixed bzr revid: vme@tinyerp.com-20120112112204-ybdy5awniy9l0wt0
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml15
1 files changed, 10 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 9580b1877a2..8aee84493f0 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -546,22 +546,27 @@
</tbody>
</table>
</t>
-<tr t-name="TreeView.rows"
+<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 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="style" t-value="'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px;'"/>
+
<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="class">
- <span t-if="!field.attrs.modifiers.invisible">
+ t-att-style="color_for(record) + style "
+ t-att-class="(fields[field.attrs.name].type === 'float') or (fields[field.attrs.name].type === 'integer')
+ ? (class +' ' +'oe-number') : 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'"/>
+ <t t-set="style" t-value="''"/>
</td>
</tr>