[IMP] Quick & dirty support for non-scalar fields values in listviews

bzr revid: fme@openerp.com-20110421102454-cumtcqzyo0smgybo
This commit is contained in:
Fabien Meghazi
2011-04-21 12:24:54 +02:00
parent 101084dfa0
commit d087f5f37a
+2 -1
View File
@@ -214,7 +214,8 @@
<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">
<t t-esc="row['data'][column.id].value"/>
<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.help"
t-if="is_button">