From 2f7229de36f6916217496ddaa0761e869661b66b Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 13 Sep 2011 08:36:17 +0200 Subject: [PATCH] [IMP] remove redundant code in ViewManagerAction initializer bzr revid: xmo@openerp.com-20110913063617-jh69s47vgwxokba1 --- addons/web/static/src/js/views.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/addons/web/static/src/js/views.js b/addons/web/static/src/js/views.js index e865ba836a5..e1554249ad6 100644 --- a/addons/web/static/src/js/views.js +++ b/addons/web/static/src/js/views.js @@ -307,7 +307,6 @@ openerp.web.ViewManagerAction = openerp.web.ViewManager.extend(/** @lends oepner * @param {Object} action descriptor for the action this viewmanager needs to manage its views. */ init: function(parent, action) { - this.session = parent.session; this.action = action; var dataset = new openerp.web.DataSetSearch(this, action.res_model, action.context, action.domain); if (action.res_id) { @@ -315,7 +314,6 @@ openerp.web.ViewManagerAction = openerp.web.ViewManager.extend(/** @lends oepner dataset.index = 0; } this._super(parent, dataset, action.views); - this.action = action; this.flags = this.action.flags || {}; if (action.res_model == 'board.board' && action.views.length == 1 && action.views) { // Not elegant but allows to avoid flickering of SearchView#do_hide