diff options
| author | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2013-09-27 14:57:59 +0200 |
|---|---|---|
| committer | Quentin (OpenERP) <qdp-launchpad@openerp.com> | 2013-09-27 14:57:59 +0200 |
| commit | cddfba7bfa62e8eeb11fc6ece35e17f99df8e10d (patch) | |
| tree | f9ebb4a7b3338be85db505a0a9d6c8c6d4219153 /addons/web/static/src/xml | |
| parent | 5639037c14c7884ea8c8a2a7e52086d21d025934 (diff) | |
| parent | 38e3daed00b9bfc7386a0c08debe7bc2f164f165 (diff) | |
[MERGE] merged niv branch with the many2many_checkboxes widget
bzr revid: qdp-launchpad@openerp.com-20130927125759-5knujhf9dkkze8hi
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index ee87237d045..48c51c4837c 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1934,4 +1934,17 @@ </t> </t> </t> +<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]"/> + </div> + </t> +</t> </templates> |
