[FIX] call_button implementation in model
bzr revid: xmo@openerp.com-20120306145741-wi9xk2c4e18fab2z
This commit is contained in:
parent
79f79deec1
commit
1465730531
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue