diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-11-14 13:59:22 +0100 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-11-14 13:59:22 +0100 |
| commit | de39dccefb1bb8362204d84ccfaa44aac480a4bb (patch) | |
| tree | 487b67bdbbc90d667a745e7022d34b90e2cd3614 /addons/web/static/src/js | |
| parent | 9f89256ef350d158b2ccb52e22480475ea454ff6 (diff) | |
[FIX] problem with invalid on*|do* refactoring
bzr revid: nicolas.vanhoren@openerp.com-20121114125922-cirvs06k133dwako
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/data.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js index dcdeb749672..9162d0066c2 100644 --- a/addons/web/static/src/js/data.js +++ b/addons/web/static/src/js/data.js @@ -721,10 +721,10 @@ instance.web.BufferedDataSet = instance.web.DataSetStatic.extend({ this.last_default_get = {}; }, default_get: function(fields, options) { - return this._super(fields, options).done(this.on_default_get); - }, - on_default_get: function(res) { - this.last_default_get = res; + var self = this; + return this._super(fields, options).done(function(res) { + self.last_default_get = res; + }); }, create: function(data) { var cached = {id:_.uniqueId(this.virtual_id_prefix), values: data, |
