[ADD] one more styling hook for the exact type of the field rendered in the cell

bzr revid: xmo@openerp.com-20120711101740-8po45qujkny5gk6a
This commit is contained in:
Xavier Morel 2012-07-11 12:17:40 +02:00
parent af5cd045f2
commit c0e9d320f3
2 changed files with 7 additions and 1 deletions

View File

@ -656,7 +656,7 @@
<t t-set="number" t-value="column.type === 'integer' or column.type == 'float'"/>
<t t-set="modifiers" t-value="column.modifiers_for(asData)"/>
<td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help"
t-attf-class="oe-field-cell #{number ? 'oe_number' : ''} #{column.tag === 'button' ? 'oe-button' : ''} #{modifiers.readonly ? 'oe_readonly' : ''}"
t-attf-class="oe-field-cell oe_list_field_#{column.widget or column.type} #{number ? 'oe_number' : ''} #{column.tag === 'button' ? 'oe-button' : ''} #{modifiers.readonly ? 'oe_readonly' : ''}"
t-att-data-field="column.id">
<t t-raw="render_cell(record, column)"/>
</td>

View File

@ -50,6 +50,12 @@ various situations:
Readonly field cell
``.oe_list_field_$type``
Additional class for the precise type of the cell, ``$type``
is the field's @widget if there is one, otherwise it's the
field's type.
``.oe-record-selector``
Selector cells