From 7a465bf7c773d20aed3a24a6a6bc04445a5c1a57 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 24 Sep 2015 11:56:38 +0200 Subject: [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. --- addons/web/static/src/js/framework/data.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/framework') 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)) { -- cgit v1.2.3