[fix] fixed previous fix about onchanges
bzr revid: nicolas.vanhoren@openerp.com-20110614092420-isugm9lc7i3k0x9g
This commit is contained in:
parent
feb346b1f6
commit
6c0532ef92
|
@ -430,9 +430,9 @@ class DataSet(openerpweb.Controller):
|
|||
return Model.unlink(ids)
|
||||
|
||||
@openerpweb.jsonrequest
|
||||
def call(self, req, model, method, ids, args):
|
||||
def call(self, req, model, method, args):
|
||||
m = req.session.model(model)
|
||||
r = getattr(m, method)(ids, *args)
|
||||
r = getattr(m, method)(*args)
|
||||
return {'result': r}
|
||||
|
||||
@openerpweb.jsonrequest
|
||||
|
|
|
@ -176,8 +176,7 @@ openerp.base.FormView = openerp.base.View.extend( /** @lends openerp.base.FormV
|
|||
return this.rpc(ajax, {
|
||||
model: this.dataset.model,
|
||||
method: method,
|
||||
ids: (this.datarecord.id == null ? [] : [this.datarecord.id]),
|
||||
args: args
|
||||
args: [].concat([(this.datarecord.id == null ? [] : [this.datarecord.id])], args)
|
||||
}, function(response) {
|
||||
self.on_processed_onchange(response, processed);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue