[imp] made related work with list view too

bzr revid: nicolas.vanhoren@openerp.com-20110826132835-ex26y5hyti3acgzk
This commit is contained in:
niv-openerp 2011-08-26 15:28:35 +02:00
parent a21f3c6686
commit 7a9ff57a0e
2 changed files with 3 additions and 2 deletions

View File

@ -599,8 +599,8 @@ openerp.base.ListView = openerp.base.View.extend( /** @lends openerp.base.ListVi
});
},
get_selected_ids: function() {
//TODO niv: this is false
debugger;
var ids = this.groups.get_selection().ids;
return ids;
}
});
openerp.base.ListView.List = openerp.base.Class.extend( /** @lends openerp.base.ListView.List# */{

View File

@ -377,6 +377,7 @@ openerp.base.Sidebar = openerp.base.Widget.extend({
},
start: function() {
this._super(this);
var self = this;
this.$element.html(QWeb.render('Sidebar'));
this.$element.find(".toggle-sidebar").click(function(e) {
self.do_toggle();