[merge] some minor improvment from community to pass domain in listview.

bzr revid: jra@tinyerp.com-20110923063519-nn7ov6a4s7olwxvr
This commit is contained in:
Jiten (OpenERP) 2011-09-23 12:05:19 +05:30
commit 83e37c378e
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ openerp.web_mobile.ListView = openerp.web.Widget.extend({
on_search_data: function(ev){
var self = this;
var dataset = new openerp.web.DataSetStatic(this, this.action.res_model, this.action.context);
dataset.name_search('', [], 'ilike',false ,function(result){
dataset.name_search('', this.action.domain, 'ilike', false, function(result){
self.$element.html(QWeb.render("ListView", {'records' : result}));
self.$element.find("[data-role=header]").find('h1').html(self.action.name);
self.$element.find("[data-role=header]").find('#home').click(function(){