diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-07-11 10:11:16 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-07-11 10:11:16 +0200 |
| commit | e0a62b4bed7b1c883650859d87af84aff021f51b (patch) | |
| tree | df29127daa0c436118d4d518154f3a2a3b61ad99 /addons/web/static/src/xml/base.xml | |
| parent | 52723ef0525d2044c3df7f0359b601fd9326394a (diff) | |
[FIX] modifiers handling in list view, add class for readonly fields
bzr revid: xmo@openerp.com-20120711081116-ao854p4ebsgyelp3
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index ec5f9c6d9de..1a8c420fa18 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -641,6 +641,7 @@ <tr t-name="ListView.row" t-att-class="row_parity" t-att-data-id="record.get('id')" t-att-style="view.style_for(record)"> + <t t-set="asData" t-value="record.toForm().data"/> <t t-foreach="columns" t-as="column"> <td t-if="column.meta"> @@ -652,10 +653,10 @@ <input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/> </th> <t t-foreach="columns" t-as="column"> - <t t-set="align" t-value="column.type === 'integer' or column.type == 'float'"/> + <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-att-class="'oe-field-cell' + (align ? ' oe_number' : '') - + (column.tag === 'button' ? ' oe-button' : '')" + t-attf-class="oe-field-cell #{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> |
