[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
This commit is contained in:
Xavier Morel
2011-07-18 17:23:02 +02:00
parent 5681c0aa5c
commit cf1aa04fdc
+2 -2
View File
@@ -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(