summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/data.js
diff options
context:
space:
mode:
authorVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-09-28 12:05:58 +0530
committerVidhin Mehta (OpenERP) <vme@tinyerp.com>2012-09-28 12:05:58 +0530
commit7730c14855162bf57b1fd20d4524bf506ab2e8d5 (patch)
tree41a1d34aacf8c7bd3cc87a97e3163b814045448e /addons/web/static/src/js/data.js
parent6d692fac366553a729ab0314e185439df3a9ecab (diff)
[IMP]remove callback from call_button and improve related code.
bzr revid: vme@tinyerp.com-20120928063558-roez0oayft9l3y4n
Diffstat (limited to 'addons/web/static/src/js/data.js')
-rw-r--r--addons/web/static/src/js/data.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js
index 55bc9239536..260f37d24a1 100644
--- a/addons/web/static/src/js/data.js
+++ b/addons/web/static/src/js/data.js
@@ -708,9 +708,8 @@ instance.web.DataSet = instance.web.CallbackEnabled.extend({
* @param {Function} error_callback
* @returns {$.Deferred}
*/
- call_button: function (method, args, callback, error_callback) {
- return this._model.call_button(method, args)
- .then(callback, error_callback);
+ call_button: function (method, args) {
+ return this._model.call_button(method, args);
},
/**
* Fetches the "readable name" for records, based on intrinsic rules
@@ -1052,7 +1051,7 @@ instance.web.BufferedDataSet = instance.web.DataSetStatic.extend({
}
return completion.promise();
},
- call_button: function (method, args, callback, error_callback) {
+ call_button: function (method, args) {
var id = args[0][0], index;
for(var i=0, len=this.cache.length; i<len; ++i) {
var record = this.cache[i];
@@ -1063,7 +1062,7 @@ instance.web.BufferedDataSet = instance.web.DataSetStatic.extend({
break;
}
}
- return this._super(method, args, callback, error_callback);
+ return this._super(method, args);
},
alter_ids: function(n_ids) {
this._super(n_ids);