From 3190884fa1abf60c83628b6ff5f4da9fc3837c11 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 4 Oct 2011 12:21:15 +0200 Subject: [PATCH] [FIX] don't perform a search_read when switching view from list to form I don't remember why I did that originally, it does not seem to serve any purpose and it causes problems in case of records with binary fields bzr revid: xmo@openerp.com-20111004102115-lz6kgyiw35vp1t99 --- addons/web/static/src/js/view_list.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/addons/web/static/src/js/view_list.js b/addons/web/static/src/js/view_list.js index a5e0c4042b2..985380d4c49 100644 --- a/addons/web/static/src/js/view_list.js +++ b/addons/web/static/src/js/view_list.js @@ -520,14 +520,8 @@ openerp.web.ListView = openerp.web.View.extend( /** @lends openerp.web.ListView# * @param {openerp.web.DataSet} dataset dataset in which the record is available (may not be the listview's dataset in case of nested groups) */ do_activate_record: function (index, id, dataset) { - var self = this; - // TODO is it needed ? - this.dataset.read_slice([],{ - context: dataset.get_context(), - domain: dataset.get_domain() - }, function () { - self.select_record(index); - }); + this.dataset.ids = dataset.ids; + this.select_record(index); }, /** * Handles signal for the addition of a new record (can be a creation,