diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-04-11 14:54:50 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-04-11 14:54:50 +0200 |
| commit | 5fc7311f1a6bea35701d4aa7c2a68ee1f3ad1a2e (patch) | |
| tree | 94137f179a4146ca0f63def3f1972038f1f9b72b /addons/base/static/src/xml | |
| parent | 911369822abb9779193137301326e61242b9daa7 (diff) | |
[ADD] row-wise colors
bzr revid: xmo@openerp.com-20110411125450-3h0ay8fskd1s6nz5
Diffstat (limited to 'addons/base/static/src/xml')
| -rw-r--r-- | addons/base/static/src/xml/base.xml | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/addons/base/static/src/xml/base.xml b/addons/base/static/src/xml/base.xml index caf463cf4e0..8a71b8ebc7a 100644 --- a/addons/base/static/src/xml/base.xml +++ b/addons/base/static/src/xml/base.xml @@ -197,9 +197,14 @@ </thead> </t> <t t-name="ListView.rows" t-foreach="rows" t-as="row"> - <t t-call="ListView.row"/> + <t t-call="ListView.row"> + <t t-set="style" t-value="null"/> + <t-if test="row.color"> + <t t-set="style" t-value="'color: ' + row.color"/> + </t-if> + </t> </t> -<tr t-name="ListView.row"> +<tr t-name="ListView.row" t-att-style="style"> <th t-if="options.selectable" class="oe-record-selector"> <input type="checkbox"/> </th> @@ -208,8 +213,8 @@ <td t-if="column.invisible !== '1'" t-att-title="column.help"> <t t-set="is_button" t-value="column.tag === 'button'"/> <!-- TODO: get correct widget from form --> - <t t-if="!is_button and row[column.id]"> - <t t-esc="row[column.id]"/> + <t t-if="!is_button and row['data'][column.id]"> + <t t-esc="row['data'][column.id]"/> </t> <button type="button" t-att-title="column.help" t-if="is_button"> |
