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/analytic_user_function/analytic_user_function.py | |
| 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/analytic_user_function/analytic_user_function.py')
0 files changed, 0 insertions, 0 deletions
