[FIX] listview dont show sidebar by default
bzr revid: al@openerp.com-20120726092618-atzkidy1gpd25n6w
This commit is contained in:
parent
b65161c4ea
commit
c59c7f3237
|
@ -357,6 +357,7 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
|
||||||
{ label: _t('Delete'), callback: this.do_delete_selected },
|
{ label: _t('Delete'), callback: this.do_delete_selected },
|
||||||
]);
|
]);
|
||||||
this.sidebar.add_toolbar(this.fields_view.toolbar);
|
this.sidebar.add_toolbar(this.fields_view.toolbar);
|
||||||
|
this.sidebar.$element.hide();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
|
@ -493,9 +494,6 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
|
||||||
},
|
},
|
||||||
do_show: function () {
|
do_show: function () {
|
||||||
this._super();
|
this._super();
|
||||||
if (this.sidebar) {
|
|
||||||
this.sidebar.$element.show();
|
|
||||||
}
|
|
||||||
if (this.$buttons) {
|
if (this.$buttons) {
|
||||||
this.$buttons.show();
|
this.$buttons.show();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue