summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/data.js
diff options
context:
space:
mode:
authorFrédéric van der Essen <fva@openerp.com>2012-10-08 11:35:52 +0200
committerFrédéric van der Essen <fva@openerp.com>2012-10-08 11:35:52 +0200
commit1b5c7111f6eac51a4b5a264d9b02fa0b1176a95c (patch)
treeff87bf912d849114d727ab74678cba662bf8a4f4 /addons/web/static/src/js/data.js
parent8fc09c1c7818613ef5d849bbd113df6e0a9d9b0e (diff)
parentfd9dfb51735d13d41b4bfd111aa48409f76040d3 (diff)
[MERGE] from trunk
bzr revid: fva@openerp.com-20121008093552-nnf1ax5ueiotjtej
Diffstat (limited to 'addons/web/static/src/js/data.js')
-rw-r--r--addons/web/static/src/js/data.js22
1 files changed, 2 insertions, 20 deletions
diff --git a/addons/web/static/src/js/data.js b/addons/web/static/src/js/data.js
index 2b82e618203..220d42737da 100644
--- a/addons/web/static/src/js/data.js
+++ b/addons/web/static/src/js/data.js
@@ -586,26 +586,8 @@ instance.web.DataSet = instance.web.CallbackEnabled.extend({
* @param {Function} error_callback
* @returns {$.Deferred}
*/
- call: function (method, args, callback, error_callback) {
- return this._model.call(method, args).then(callback, error_callback);
- },
- /**
- * Calls an arbitrary method, with more crazy
- *
- * @param {String} method
- * @param {Array} [args]
- * @param {Number} [domain_index] index of a domain to evaluate in the args array
- * @param {Number} [context_index] index of a context to evaluate in the args array
- * @returns {$.Deferred}
- */
- 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 || []
- });
+ call: function (method, args) {
+ return this._model.call(method, args);
},
/**
* Calls a button method, usually returning some sort of action