summaryrefslogtreecommitdiff
path: root/addons/web_mobile/static/src
diff options
context:
space:
mode:
authorBhumi Thakkar (Open ERP) <bth@tinyerp.com>2011-12-07 15:24:29 +0530
committerBhumi Thakkar (Open ERP) <bth@tinyerp.com>2011-12-07 15:24:29 +0530
commit486021e965a60a32e3498b2775c656d7a20be2aa (patch)
treea65655b058ba85a4b19161e7eba03c3f73d1aa1f /addons/web_mobile/static/src
parent014731ce5c05e87a8a9a4dbc5f868679e378df23 (diff)
[FIX] Pass result's ids to the name get method in listview.
bzr revid: bth@tinyerp.com-20111207095429-sb9qhnnstlwst9ax
Diffstat (limited to 'addons/web_mobile/static/src')
-rw-r--r--addons/web_mobile/static/src/js/list_mobile.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/web_mobile/static/src/js/list_mobile.js b/addons/web_mobile/static/src/js/list_mobile.js
index 67058bf72f6..7dd9d87983d 100644
--- a/addons/web_mobile/static/src/js/list_mobile.js
+++ b/addons/web_mobile/static/src/js/list_mobile.js
@@ -30,12 +30,16 @@ openerp.web_mobile.ListView = openerp.web.Widget.extend({
},
on_search_data: function(ev){
var self = this;
+ var list_ids = [];
var datasearch = new openerp.web.DataSetSearch(self, self.action.res_model,self.action.context);
datasearch.domain = self.action.domain;
datasearch.read_slice(['name'], {context:datasearch.context, domain: datasearch.domain, limit:80}, function(listresult){
+ _.each(listresult, function(i) {
+ list_ids.push(i.id);
+ });
_.extend(self.action.context,{"html_name_get" : true});
var dataset = new openerp.web.DataSet(self, datasearch.model,datasearch.context);
- dataset.name_get(listresult,function(res){
+ dataset.name_get(list_ids,function(res){
var additional = "";
if(res['html_name_get']){
additional = res['display'];