[FIX] display value '0' in numerical field, only avoid displaying value when it's actually 'false'

bzr revid: xmo@openerp.com-20110520131302-avzr12r3biaqtgl0
This commit is contained in:
Xavier Morel
2011-05-20 15:13:02 +02:00
parent 19e2af2097
commit 2a04eef03b
+1 -1
View File
@@ -210,7 +210,7 @@
<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">
<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>