[FIX] make m2m checkbox labels clickable

This commit is contained in:
xmo-odoo
2016-01-29 16:24:14 +01:00
parent bafa1a677e
commit 19a1c18f57
+5 -7
View File
@@ -2023,13 +2023,11 @@
<t t-name="FieldMany2ManyCheckBoxes">
<t t-foreach="widget.get('records')" t-as="record">
<div>
<t t-if="selected[record[0]]">
<input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])" checked="true"/>
</t>
<t t-if="! selected[record[0]]">
<input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])"/>
</t>
<t t-esc="record[1]"/>
<label style="font-weight: normal">
<input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])"
t-att-checked="selected[record[0]] or null"/>
<t t-esc="record[1]"/>
</label>
</div>
</t>
</t>