From cf1aa04fdcfb20818b5785fce3012791ab7c3129 Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 18 Jul 2011 17:23:02 +0200 Subject: [PATCH] [IMP] read_ids on res.users will return a list of users, not a list of actions. Rename variable accordingly bzr revid: xmo@openerp.com-20110718152302-u00ihepv0ehtm1ds --- addons/base/static/src/js/chrome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/base/static/src/js/chrome.js b/addons/base/static/src/js/chrome.js index 79169f17f36..cf4d3ab5338 100644 --- a/addons/base/static/src/js/chrome.js +++ b/addons/base/static/src/js/chrome.js @@ -1171,8 +1171,8 @@ openerp.base.WebClient = openerp.base.Controller.extend({ var self = this; // TODO: add actual loading if there is url state to unpack, test on window.location.hash var ds = new openerp.base.DataSetSearch(this.session, 'res.users'); - ds.read_ids([parseInt(this.session.uid, 10)], ['action_id'], function (actions) { - var home_action = actions[0].action_id; + ds.read_ids([parseInt(this.session.uid, 10)], ['action_id'], function (users) { + var home_action = users[0].action_id; if (!home_action) { return; } // oh dear openerp.base.View.prototype.execute_action.call(