[IMP]remove callbacks from call_and_eval method.

bzr revid: vme@tinyerp.com-20120928061649-tj4u5alrpz9agubb
This commit is contained in:
Vidhin Mehta (OpenERP)
2012-09-28 11:46:49 +05:30
parent 6d692fac36
commit bd56a25475
+2 -2
View File
@@ -690,14 +690,14 @@ instance.web.DataSet = instance.web.CallbackEnabled.extend({
* @param {Function} error_callback
* @returns {$.Deferred}
*/
call_and_eval: function (method, args, domain_index, context_index, callback, error_callback) {
call_and_eval: function (method, args, domain_index, context_index) {
return instance.session.rpc('/web/dataset/call', {
model: this.model,
method: method,
domain_id: domain_index == undefined ? null : domain_index,
context_id: context_index == undefined ? null : context_index,
args: args || []
}, callback, error_callback);
});
},
/**
* Calls a button method, usually returning some sort of action