[FIX] Signature change in DataSet.write had not been performed in child class BufferedDataSet, resulting in success callback not being correctly called on successful save of row

lp bug: https://launchpad.net/bugs/842644 fixed

bzr revid: xmo@openerp.com-20110908111024-qfr6xlrw9ecy7m6y
This commit is contained in:
Xavier Morel
2011-09-08 13:10:24 +02:00
parent bba27daf04
commit ea6e7c4be4
+1 -1
View File
@@ -616,7 +616,7 @@ openerp.web.BufferedDataSet = openerp.web.DataSetStatic.extend({
to_return.resolve({result: cached.id});
return to_return.promise();
},
write: function (id, data, callback) {
write: function (id, data, options, callback) {
var self = this;
var record = _.detect(this.to_create, function(x) {return x.id === id;});
record = record || _.detect(this.to_write, function(x) {return x.id === id;});