[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() { get_selected_ids: function() {
//TODO niv: this is false var ids = this.groups.get_selection().ids;
debugger; return ids;
} }
}); });
openerp.base.ListView.List = openerp.base.Class.extend( /** @lends openerp.base.ListView.List# */{ 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() { start: function() {
this._super(this); this._super(this);
var self = this;
this.$element.html(QWeb.render('Sidebar')); this.$element.html(QWeb.render('Sidebar'));
this.$element.find(".toggle-sidebar").click(function(e) { this.$element.find(".toggle-sidebar").click(function(e) {
self.do_toggle(); self.do_toggle();