[FIX] searchview needs to send the action's context when loading its view
bzr revid: xmo@openerp.com-20111116133803-f21mzgatnkr5in3p
This commit is contained in:
parent
5ec5510474
commit
901596adce
|
@ -41,7 +41,11 @@ openerp.web.SearchView = openerp.web.Widget.extend(/** @lends openerp.web.Search
|
||||||
if (this.headless) {
|
if (this.headless) {
|
||||||
this.ready.resolve();
|
this.ready.resolve();
|
||||||
} else {
|
} else {
|
||||||
this.rpc("/web/searchview/load", {"model": this.model, "view_id":this.view_id}, this.on_loaded);
|
this.rpc("/web/searchview/load", {
|
||||||
|
model: this.model,
|
||||||
|
view_id: this.view_id,
|
||||||
|
context: this.dataset.get_context()
|
||||||
|
}, this.on_loaded);
|
||||||
}
|
}
|
||||||
return this.ready.promise();
|
return this.ready.promise();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue