diff options
| author | Xavier Morel <xmo@openerp.com> | 2011-10-14 10:43:10 +0200 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2011-10-14 10:43:10 +0200 |
| commit | 405beaa3c6cde0c365530c415aea9ce5ff764497 (patch) | |
| tree | c0efd937dff92a8e4e58b3d5301ab518529f6a05 /addons/web/static/src/xml/base.xml | |
| parent | 55af4c6c9f39cd86298f7abda574af4261150e47 (diff) | |
[FIX] m2o values display in list views (mostly under onchange condition)
Normal m2o values are pairs of (id, name) (name_get format, basically)
but in some cases (lazyness & al), APIs (often onchange results) only
return the `id` part, which is not sufficient to display the m2o
as-is, a name_get has to be performed.
Added an intermediate step in displaying a table cell (in list view):
if we're displaying an m2o cell (~a cell for an m2o column) and the
value is a number, then dispatch a name_get and keep trucking (display
the rows without the m2o values).
When the name_get returns, it will simply refresh the row and diplay
the m2o name.
bzr revid: xmo@openerp.com-20111014084310-pv2mmmy28fwwk9sm
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 8dbd3401b4c..3f955789b11 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -636,7 +636,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-raw="render_cell(record.toForm().data, column)"/> + <t t-raw="render_cell(record, column)"/> </td> </t> <td t-if="options.deletable" class='oe-record-delete' width="1"> |
