summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-04-15 11:35:39 +0200
committerChristophe Matthieu <chm@odoo.com>2015-04-15 13:31:20 +0200
commit7d3cda215a85dd81571a5dde3753fd2f954f6ccf (patch)
tree964a021062ef2068173f883193f5901c77a47921 /addons/web/static/src/xml/base.xml
parent145beaf73f3a0b80f68e2635587a0a7bc24be213 (diff)
[IMP] web: web.form_relational: Change widgets to use AbstractManyField. Remove custom insertion in the DataSet to improve the managment of cache and the odoo commands list. this.get('value') return the list of ids and virtual ids and get_value return a commands list.
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
-rw-r--r--addons/web/static/src/xml/base.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml
index 285c9066c66..9d9b54e4d74 100644
--- a/addons/web/static/src/xml/base.xml
+++ b/addons/web/static/src/xml/base.xml
@@ -1932,10 +1932,10 @@
<t t-name="FieldMany2ManyCheckBoxes">
<t t-foreach="widget.get('records')" t-as="record">
<div>
- <t t-if="selected[record[0]]">
+ <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="! selected[record[0]]">
+ <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]"/>