summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-10-01 15:03:22 +0200
committerChristophe Matthieu <chm@odoo.com>2015-10-01 15:35:26 +0200
commitce30ee70660535ef53453943d20d6fa230232b4d (patch)
treeacef60db5cfa694d1e3293d8e059900393e30491 /addons/web/static/src
parentd750206c495b48b6ab951f034e37f6186ca8e979 (diff)
[FIX] web: use _.clone to avoid change of 'default_value'
Diffstat (limited to 'addons/web/static/src')
-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 6fef40559b4..038ed07002e 100644
--- a/addons/web/static/src/js/framework/data.js
+++ b/addons/web/static/src/js/framework/data.js
@@ -736,7 +736,7 @@ var BufferedDataSet = DataSetStatic.extend({
default_get: function(fields, options) {
var self = this;
return this._super(fields, options).done(function(res) {
- self.last_default_get = res;
+ self.last_default_get = _.clone(res);
});
},
get_cache: function (id) {