[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:
Xavier Morel 2011-11-16 14:38:03 +01:00
parent 5ec5510474
commit 901596adce
1 changed files with 5 additions and 1 deletions

View File

@ -41,7 +41,11 @@ openerp.web.SearchView = openerp.web.Widget.extend(/** @lends openerp.web.Search
if (this.headless) {
this.ready.resolve();
} 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();
},