diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-07-08 16:06:55 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-07-08 16:06:55 +0200 |
| commit | f5b72b6bcb084fb198dcf049c3893b84a289d847 (patch) | |
| tree | f4a6891ec548ffdf2f8eef36366bd5df7f109f16 /addons/base/static/src/xml/base.xml | |
| parent | ff19bed2b30015fdbe82e2dca4cf951afacd375f (diff) | |
[FIX] rendering of m2o selections after edition in editable lists
moved rendering of cell contents into JS to have more control (and simpler tests/dispatching. May also help the method getting JITed, with a bit o' luck)
bzr revid: xmo@openerp.com-20110708140655-lpbtriqto8tz2uxx
Diffstat (limited to 'addons/base/static/src/xml/base.xml')
| -rw-r--r-- | addons/base/static/src/xml/base.xml | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/addons/base/static/src/xml/base.xml b/addons/base/static/src/xml/base.xml index 26c0e55e482..a550c62cf45 100644 --- a/addons/base/static/src/xml/base.xml +++ b/addons/base/static/src/xml/base.xml @@ -324,20 +324,7 @@ <td t-if="!column.meta and column.invisible !== '1'" t-att-title="column.help" t-att-class="'oe-field-cell' + (align ? ' oe-number' : '')" t-att-data-field="column.id"> - <t t-set="attrs" t-value="column.modifiers_for(row.data)"/> - <t t-if="!attrs.invisible"> - <t t-set="is_button" t-value="column.tag === 'button'"/> - <!-- TODO: get correct widget from form --> - <t t-if="!is_button and row['data'][column.id].value !== false"> - <t t-set="value" t-value="row['data'][column.id].value"/> - <t t-esc="value instanceof Array ? value[1] : value"/> - </t> - <button type="button" t-att-title="column.string" - t-if="is_button"> - <img t-att-src="'/base/static/src/img/icons/' + column.icon + '.png'" - t-att-alt="column.string"/> - </button> - </t> + <t t-raw="render_cell(row.data, column)"/> </td> </t> <td t-if="options.deletable" class='oe-record-delete'> |
