diff options
| author | Xavier Morel <xmo@openerp.com> | 2012-12-06 14:51:14 +0100 |
|---|---|---|
| committer | Xavier Morel <xmo@openerp.com> | 2012-12-06 14:51:14 +0100 |
| commit | 7ac99cbeafc88f0fe6f6c2ee425c9ef87180a2ce (patch) | |
| tree | 33be658f2ccacade894ed9c5e9d5d35976d89ad1 /addons/web/static/src/xml | |
| parent | 96408a36f03f7184c7a43e7b68d3eea5e73e924e (diff) | |
[FIX] form selection field: don't interpret value 0 as false in the template when the code doesn't do so
bzr revid: xmo@openerp.com-20121206135114-nuwc3wdc6zatbl3d
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index c272e1f8eb4..2161bc84f3d 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1054,7 +1054,10 @@ t-att-autofocus="widget.node.attrs.autofocus" t-att-id="widget.id_for_label"> <t t-foreach="widget.values" t-as="option"> - <option><t t-esc="widget.node.attrs.placeholder" t-if="option[0] == false and widget.node.attrs.placeholder"/><t t-esc="option[1]" t-if="option[0] != false"/></option> + <option> + <t t-esc="widget.node.attrs.placeholder" t-if="option[0] === false and widget.node.attrs.placeholder"/> + <t t-esc="option[1]" t-if="option[0] !== false"/> + </option> </t> </select> </span> |
