diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-08-19 17:05:21 +0200 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2015-08-19 17:05:30 +0200 |
| commit | 6538c67c2b9d32dc5e91351470d85d5e1c47980a (patch) | |
| tree | d0cfb5505e314f656271202e28966c9ae56fc81e /addons/web/static | |
| parent | 66274092685440f01048679fe1a026244474d695 (diff) | |
[FIX] web: many2one try to read a creating record but the cache doesn't yet contain the record
Diffstat (limited to 'addons/web/static')
| -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)) { |
