[MOV] Moved SideBar 'import' and 'export' to list view only
bzr revid: fme@openerp.com-20120607143926-a0p7quqguz130iwd
This commit is contained in:
parent
9e18a2ba9f
commit
a6a4f8e752
|
@ -339,6 +339,8 @@ instance.web.ListView = instance.web.View.extend( /** @lends instance.web.ListVi
|
|||
this.sidebar = new instance.web.Sidebar(this);
|
||||
this.sidebar.appendTo(this.options.$sidebar);
|
||||
this.sidebar.add_items('other', [
|
||||
{ label: _t("Import"), callback: this.on_sidebar_import },
|
||||
{ label: _t("Export"), callback: this.on_sidebar_export },
|
||||
{ label: _t('Delete'), callback: this.do_delete_selected },
|
||||
]);
|
||||
this.sidebar.add_toolbar(this.fields_view.toolbar);
|
||||
|
|
|
@ -706,11 +706,8 @@ instance.web.Sidebar = instance.web.Widget.extend({
|
|||
this.items = {
|
||||
'print' : [],
|
||||
'files' : [],
|
||||
'other' : [
|
||||
{ label: _t("Import"), callback: view.on_sidebar_import },
|
||||
{ label: _t("Export"), callback: view.on_sidebar_export }
|
||||
]
|
||||
}
|
||||
'other' : []
|
||||
};
|
||||
if (this.session.uid === 1) {
|
||||
var item = { label: _t("Translate"), callback: view.on_sidebar_translate, title: _t("Technical translation") };
|
||||
this.items.other.push(item);
|
||||
|
|
Loading…
Reference in New Issue