[FIX] only select rows if select_view_id *is set* and matches the record's id

bzr revid: xmo@openerp.com-20120702110530-54t24gh0lo1cctsv
This commit is contained in:
Xavier Morel 2012-07-02 13:05:30 +02:00
parent 718ae91920
commit 70d5ffb73b
1 changed files with 1 additions and 1 deletions

View File

@ -645,7 +645,7 @@
</td>
</t>
<th t-if="options.selectable" class="oe-record-selector" width="1">
<t t-set="checked" t-value="options.select_view_id == record.get('id') ? 'checked' : null"/>
<t t-set="checked" t-value="(options.select_view_id and 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>