bzr revid: nicolas.vanhoren@openerp.com-20110628172304-8l1kzi2dwve83dj1
This commit is contained in:
niv-openerp
2011-06-28 19:23:04 +02:00
5 changed files with 48 additions and 19 deletions
+9
View File
@@ -328,6 +328,15 @@ openerp.base.DataSet = openerp.base.Controller.extend( /** @lends openerp.base.
args: args || []
}, callback, error_callback);
},
call_button: function (method, args, callback, error_callback) {
return this.rpc('/base/dataset/call_button', {
model: this.model,
method: method,
domain_id: null,
context_id: 1,
args: args || []
}, callback, error_callback);
},
name_get: function(ids, callback) {
return this.call_and_eval('name_get', [ids, this.context], null, 1, callback);
},