[fix] problem in idea view

bzr revid: nicolas.vanhoren@openerp.com-20111010150012-pty14q4z54zdtgvu
This commit is contained in:
niv-openerp 2011-10-10 17:00:12 +02:00
parent aaf01c6395
commit 5cdf82dd0a
1 changed files with 1 additions and 1 deletions

View File

@ -613,7 +613,7 @@ openerp.web.BufferedDataSet = openerp.web.DataSetStatic.extend({
create: function(data, callback, error_callback) {
var cached = {id:_.uniqueId(this.virtual_id_prefix), values: data,
defaults: this.last_default_get};
this.to_create.push(cached);
this.to_create.push(_.extend(_.clone(cached), {values: _.clone(cached.values)}));
this.cache.push(cached);
this.on_change();
var prom = $.Deferred().then(callback);