[fix] problem in idea view
bzr revid: nicolas.vanhoren@openerp.com-20111010150012-pty14q4z54zdtgvu
This commit is contained in:
parent
aaf01c6395
commit
5cdf82dd0a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue