diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-02-02 14:44:39 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-02-02 14:44:39 +0100 |
| commit | e765569d04766ca005484c4746faeb08bd917446 (patch) | |
| tree | c982aaf44d13766003c3285d65f03183f94e0bce /addons/web/static/src/xml | |
| parent | 986da5416c6887128bb6c93bdab0a30df30144ec (diff) | |
| parent | f0a63e591380642a105b7325aa29cd82a2966cda (diff) | |
[MERGE] forward port of branch 9.0 up to f0a63e5
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 12 |
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 a8c24000c6b..f4e7e45740f 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1437,13 +1437,11 @@ <t t-name="FieldMany2ManyCheckBoxes"> <t t-foreach="widget.get('records')" t-as="record"> <div> - <t t-if="widget.get('value').indexOf(record[0]) !== -1"> - <input type="checkbox" t-att-data-record-id="JSON.stringify(record[0])" checked="true"/> - </t> - <t t-if="widget.get('value').indexOf(record[0]) === -1"> - <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="(widget.get('value').indexOf(record[0]) !== -1) or null"/> + <t t-esc="record[1]"/> + </label> </div> </t> </t> |
