3
0
Fork 0

[FIX] Apply menu only on list view

9.0
Adil Houmadi 2014-07-26 15:40:17 +02:00
parent 434e119c51
commit aa05cfd2bb
1 changed files with 5 additions and 3 deletions

View File

@ -27,8 +27,10 @@ openerp.web_export_view = function (instance) {
redraw: function () { redraw: function () {
var self = this; var self = this;
this._super.apply(this, arguments); this._super.apply(this, arguments);
if (self.getParent().ViewManager.active_view == 'list') {
self.$el.find('.oe_sidebar').append(QWeb.render('AddExportViewMain', {widget: self})); self.$el.find('.oe_sidebar').append(QWeb.render('AddExportViewMain', {widget: self}));
self.$el.find('.oe_sidebar_export_view_xls').on('click', self.on_sidebar_export_view_xls); self.$el.find('.oe_sidebar_export_view_xls').on('click', self.on_sidebar_export_view_xls);
}
}, },
on_sidebar_export_view_xls: function () { on_sidebar_export_view_xls: function () {