diff options
| author | Fabien Meghazi <fme@openerp.com> | 2011-11-17 14:09:13 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2011-11-17 14:09:13 +0100 |
| commit | 5ebcc65fc5e31a2f3a422ccc4ea43353c7906115 (patch) | |
| tree | fd291a0d5925d2ab7d2010c850b9359448137a56 /addons/web | |
| parent | 41aded04c415ff473fa6992349710408c597d4a1 (diff) | |
[FIX] Fixed data#read_index() so it returns same argument to callback and to .then()
bzr revid: fme@openerp.com-20111117130913-lji983yp8b7vb0do
Diffstat (limited to 'addons/web')
| -rw-r--r-- | addons/web/static/src/js/data.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index e783f374dce..69d8fd9ddfd 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -316,7 +316,7 @@ openerp.web.DataSet = openerp.web.Widget.extend( /** @lends openerp.web.DataSet def.reject(); } else { fields = fields || false; - return this.read_ids([this.ids[this.index]], fields).then(function(records) { + this.read_ids([this.ids[this.index]], fields).then(function(records) { def.resolve(records[0]); }, function() { def.reject.apply(def, arguments); |
