diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-10-11 13:29:24 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-10-11 13:29:24 +0200 |
| commit | 039e42110f6abeeb92bdd522d0c029fa5a88a8af (patch) | |
| tree | 82733924bbf8df8d672da491bb5631d70c5702f9 /addons/web/static/src/xml/base.xml | |
| parent | d3f57c94b50b18094aab42e72a1c207ab6e29806 (diff) | |
[IMP] copy colorization code from listview to treeview
bzr revid: xmo@openerp.com-20111011112924-ih7on411mirf5wmi
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index d62382b57fe..c58e08474c8 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -539,7 +539,7 @@ <td t-foreach="fields_view" t-as="field" t-if="!field.attrs.modifiers.tree_invisible" t-att-data-id="record.id" - t-att-style="!field_index ? 'background-position: ' + 19*level + 'px; padding-left: ' + 19*level + 'px' : undefined" + 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'"> <span t-if="!field.attrs.modifiers.invisible"> <t t-esc="render(record[field.attrs.name], fields[field.attrs.name])" /> |
