summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/framework
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-09-24 11:56:38 +0200
committerChristophe Matthieu <chm@odoo.com>2015-09-24 14:13:55 +0200
commit7a465bf7c773d20aed3a24a6a6bc04445a5c1a57 (patch)
tree69e73279278b128d93e3909feca37fb19d2f0177 /addons/web/static/src/js/framework
parent0a57d37b35519400821ef615a2e93311c87c90d4 (diff)
[FIX] web: clone values in read_ids (avoid external changes)
Some widgets like list editable use and change values dictionary. When the write is called, the values in the cache is equal to the changes send => field no dirty => no change triggered.
Diffstat (limited to 'addons/web/static/src/js/framework')
-rw-r--r--addons/web/static/src/js/framework/data.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/framework/data.js b/addons/web/static/src/js/framework/data.js
index ec806c4d33b..6fef40559b4 100644
--- a/addons/web/static/src/js/framework/data.js
+++ b/addons/web/static/src/js/framework/data.js
@@ -843,7 +843,7 @@ var BufferedDataSet = DataSetStatic.extend({
var return_records = function() {
var records = _.map(ids, function(id) {
- return self.get_cache(id).values;
+ return _.clone(self.get_cache(id).values);
});
if (self.debug_mode) {
if (_.include(records, undefined)) {