summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src/js/web_mobile.js
diff options
context:
space:
mode:
author=Xavier Morel <xmo@openerp.com>2011-06-23 18:13:00 +0530
committerJiten Rangwala (OpenERP) <jra@tinyerp.com>2011-06-23 18:13:00 +0530
commitcc4c2d20ba001d5a57e6e03cd2e71febf05e58d7 (patch)
treeda106dcdd33031dcb6d19fcf6d461b7785681ed6 /addons/web_mobile/static/src/js/web_mobile.js
parent30f799ad0963d5cb60bc7129c14534cea5117a6f (diff)
[IMP] Change the calling search_read method of dataset to function DatasetSearch from js.
bzr revid: jra@tinyerp.com-20110623124300-37ldh9oeh6g6xdsq
Diffstat (limited to 'addons/web_mobile/static/src/js/web_mobile.js')
-rw-r--r--addons/web_mobile/static/src/js/web_mobile.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/addons/web_mobile/static/src/js/web_mobile.js b/addons/web_mobile/static/src/js/web_mobile.js
index 08d9e81f4be..059c374d7d4 100644
--- a/addons/web_mobile/static/src/js/web_mobile.js
+++ b/addons/web_mobile/static/src/js/web_mobile.js
@@ -90,11 +90,8 @@ openerp.web_mobile.ListView = openerp.base.Controller.extend({
on_action: function(action) {
var self = this;
var view_id = action.views[0][0];
- var model = action.res_model;
-
- self.rpc('/base/dataset/search_read', {
- model: model
- },function(result){
+ (new openerp.base.DataSetSearch(this.session, action.res_model, null, null))
+ .read_slice(false, false, false, function(result){
this.listview = new openerp.web_mobile.ListView(this.session, "oe_app");
self.$element.html(QWeb.render("ListView", {'records' : result}));
});