From 8f9bea5393e646c72ef026c1b51342df930b1ecb Mon Sep 17 00:00:00 2001 From: Antony Lesuisse Date: Mon, 18 Jul 2011 15:59:30 +0200 Subject: [PATCH] controllers is family form fixes 2 bzr revid: al@openerp.com-20110718135930-a23vdzjy4ch8ozeh --- addons/base/static/src/js/chrome.js | 7 ------- addons/base/static/src/js/list.js | 3 ++- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/addons/base/static/src/js/chrome.js b/addons/base/static/src/js/chrome.js index 63fd722b298..74dfb650f1f 100644 --- a/addons/base/static/src/js/chrome.js +++ b/addons/base/static/src/js/chrome.js @@ -528,16 +528,9 @@ openerp.base.BaseWidget = openerp.base.Controller.extend({ * lets the widgets clean up after themselves. */ stop: function () { - var tmp_children = this.children; - this.children = []; - _.each(tmp_children, function(x) { - x.stop(); - }); if(this.$element != null) { this.$element.remove(); } - this.set_parent(null); - this._super(); }, /** * Render the widget. This.template must be defined. diff --git a/addons/base/static/src/js/list.js b/addons/base/static/src/js/list.js index 491fd885a5f..e6b9eb92629 100644 --- a/addons/base/static/src/js/list.js +++ b/addons/base/static/src/js/list.js @@ -254,8 +254,9 @@ openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListVi }) .val(self._limit || 'NaN'); }); - + // debugger; this.view_manager.sidebar.set_toolbar(data.fields_view.toolbar); + }, /** * Configures the ListView pager based on the provided dataset's information