[FIX] make m2m checkbox labels clickable
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user