[FIX] problem with invalid on*|do* refactoring

bzr revid: nicolas.vanhoren@openerp.com-20121114125922-cirvs06k133dwako
This commit is contained in:
niv-openerp 2012-11-14 13:59:22 +01:00
parent 9f89256ef3
commit de39dccefb
1 changed files with 4 additions and 4 deletions

View File

@ -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,