[FIX] call_button implementation in model

bzr revid: xmo@openerp.com-20120306145741-wi9xk2c4e18fab2z
This commit is contained in:
Xavier Morel 2012-03-06 15:57:41 +01:00
parent 79f79deec1
commit 1465730531
1 changed files with 2 additions and 2 deletions

View File

@ -291,8 +291,8 @@ openerp.web.Model = openerp.web.Class.extend(/** @lends openerp.web.Model# */{
* FIXME: remove when evaluator integrated
*/
call_button: function (method, args) {
return this.rpc('/web/dataset/call_button', {
model: this.model,
return openerp.connection.rpc('/web/dataset/call_button', {
model: this.name,
method: method,
domain_id: null,
context_id: args.length - 1,