diff options
Diffstat (limited to 'addons/web/static/src/js/framework/data.js')
| -rw-r--r-- | addons/web/static/src/js/framework/data.js | 2 |
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 c0c297fee09..9530486066d 100644 --- a/addons/web/static/src/js/framework/data.js +++ b/addons/web/static/src/js/framework/data.js @@ -911,7 +911,7 @@ var BufferedDataSet = DataSetStatic.extend({ var return_records = function() { var records = _.map(ids, function(id) { var cache = _.find(self.cache, function(cache) {return cache.id === id;}); - return _.extend({}, cache.values, {"id": id}, options.readonly_fields || {}); + return _.extend({}, cache && cache.values, {"id": id}, options.readonly_fields || {}); }); if (self.debug_mode) { if (_.include(records, undefined)) { |
