[FIX] selection field default value selection in IE8
authorXavier Morel <xmo@openerp.com>
Tue, 31 Jan 2012 13:38:07 +0000 (14:38 +0100)
committerXavier Morel <xmo@openerp.com>
Tue, 31 Jan 2012 13:38:07 +0000 (14:38 +0100)
for some reason, @selected blows up (probably when converting the XML dom to HTML), but t-attf-selected works

bzr revid: xmo@openerp.com-20120131133807-wm549gl7ilg50uf7

addons/web/static/src/xml/base.xml

index ac9f7b4..550f930 100644 (file)
             <t t-foreach="attrs.selection" t-as="option">
                 <t t-set="selected" t-value="defaults[attrs.name] === option[0]"/>
                 <option t-if="selected"
-                        t-att-value="option_index" selected="selected">
+                        t-attf-selected="selected"
+                        t-att-value="option_index">
                     <t t-esc="option[1]"/>
                 </option>
                 <option t-if="!selected" t-att-value="option_index">