[FIX] weird issue with dynamic input/@type which would not work at all (and yield a text field in the first cell of list views instead of a checkbox)

bzr revid: xmo@openerp.com-20120118120554-0neg9puvg2x3swhb
This commit is contained in:
Xavier Morel
2012-01-18 13:05:54 +01:00
parent 239a744948
commit aff0825626
+3 -1
View File
@@ -682,7 +682,9 @@
</td>
</t>
<th t-if="options.selectable" class="oe-record-selector" width="1">
<input t-att-type="options.radio? 'radio': 'checkbox'" name ="radiogroup" t-att-checked="options.select_view_id == record.get('id')? true: null"/>
<t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
<input t-if="options.radio" type="radio" name="radiogroup" t-att-checked="checked"/>
<input t-if="!options.radio" type="checkbox" name="radiogroup" t-att-checked="checked"/>
</th>
<th t-if="options.isClarkGable" class="oe-record-edit-link" width="1">
<img src="/web/static/src/img/pencil.gif" width="12" height="12" class="oe-record-edit-link-img"/>