summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorXavier Morel <xmo@openerp.com>2012-01-18 13:05:54 +0100
committerXavier Morel <xmo@openerp.com>2012-01-18 13:05:54 +0100
commitaff08256261e72a516a20fc86d62f9c7c3f4085d (patch)
tree8dd1066b12db2f6cd2e0a54d2214f1abbd239a44 /addons/web/static/src
parent239a744948dc313f51510ad669194c48cc70b76f (diff)
[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
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/xml/base.xml4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 04b91770943..5013f6423a4 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -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"/>