[fix] problem in BufferedDataSetStatic : should not trigger a on_change when we call create()

bzr revid: nicolas.vanhoren@openerp.com-20120213165437-lhs3d6iyvx61vlun
This commit is contained in:
niv-openerp 2012-02-13 17:54:37 +01:00
parent d2a0a48e33
commit 6d17167b36
1 changed files with 0 additions and 1 deletions

View File

@ -651,7 +651,6 @@ openerp.web.BufferedDataSet = openerp.web.DataSetStatic.extend({
defaults: this.last_default_get};
this.to_create.push(_.extend(_.clone(cached), {values: _.clone(cached.values)}));
this.cache.push(cached);
this.on_change();
var prom = $.Deferred().then(callback);
prom.resolve({result: cached.id});
return prom.promise();