[fix] problem with context handling in on_change when there is no context
bzr revid: nicolas.vanhoren@openerp.com-20110704113740-fv3s5wrzlnkagpuv
This commit is contained in:
parent
59f75a3eae
commit
ee1ec9dae7
|
@ -214,7 +214,7 @@ openerp.base.FormView = openerp.base.View.extend( /** @lends openerp.base.FormV
|
|||
model: this.dataset.model,
|
||||
method: method,
|
||||
args: [(this.datarecord.id == null ? [] : [this.datarecord.id])].concat(args),
|
||||
context_id: context_index + 1
|
||||
context_id: context_index === null ? null : context_index + 1
|
||||
}, function(response) {
|
||||
self.on_processed_onchange(response, processed);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue