controllers is family form fixes 2

bzr revid: al@openerp.com-20110718135930-a23vdzjy4ch8ozeh
This commit is contained in:
Antony Lesuisse 2011-07-18 15:59:30 +02:00
parent e703080b51
commit 8f9bea5393
2 changed files with 2 additions and 8 deletions

View File

@ -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.

View File

@ -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