summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml
diff options
context:
space:
mode:
authorxmo-odoo <xmo-odoo@users.noreply.github.com>2016-01-29 16:24:14 +0100
committerxmo-odoo <xmo-odoo@users.noreply.github.com>2016-01-29 16:24:14 +0100
commit19a1c18f57289aaffba6e978e73fa3f6ad251df7 (patch)
tree92aa947f5fa5f417271eaeef5dc57b73f0e86db6 /addons/web/static/src/xml
parentbafa1a677e0b7d5063e932a15ad7a448359ccbe0 (diff)
[FIX] make m2m checkbox labels clickable
Diffstat (limited to 'addons/web/static/src/xml')
-rw-r--r--addons/web/static/src/xml/base.xml12
1 files changed, 5 insertions, 7 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 65185467b3f..311e3b5aeb2 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -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>