diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-09-25 17:21:26 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-09-25 17:21:26 +0200 |
| commit | 11b5f393593e66df4e1809b4d672f805b1855146 (patch) | |
| tree | 3ed1d5df4ffc7be2204b65f3c343cc782ababb31 /addons/web/static/src/xml | |
| parent | eae9b157313590084fbce975127f2ebfd800f2a0 (diff) | |
| parent | 38e3daed00b9bfc7386a0c08debe7bc2f164f165 (diff) | |
[IMP] Added m2m_checkboxes
bzr revid: nicolas.vanhoren@openerp.com-20130925152126-8zrjbt3y7qfhbysf
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> |
