[ADD] Added error_callback to Dataset#write

bzr revid: fme@openerp.com-20110804145342-81mvfc4x4ydt0hnu
This commit is contained in:
Fabien Meghazi
2011-08-04 16:53:42 +02:00
parent e3b56ecec4
commit b8304e55f8
+2 -2
View File
@@ -318,13 +318,13 @@ openerp.base.DataSet = openerp.base.Widget.extend( /** @lends openerp.base.Data
context: this.get_context()
}, callback, error_callback);
},
write: function (id, data, callback) {
write: function (id, data, callback, error_callback) {
return this.rpc('/base/dataset/save', {
model: this.model,
id: id,
data: data,
context: this.get_context()
}, callback);
}, callback, error_callback);
},
unlink: function(ids, callback, error_callback) {
var self = this;