我正在尝试从Share and Embed
中删除List view
。我正在使用模块web_hide_duplicate
模块从Form View
中删除它。它工作正常。在列表视图中它没有。
*。JS
instance.web.ListView.include({
load_list: function(data) {
this._super(data);
if (this.sidebar == undefined)
return;
var no_share = _.reject(this.sidebar.items.other, function (item) {
return item.label === _t('Share');
});
this.sidebar.items.other = no_share;
var no_embed = _.reject(this.sidebar.items.other, function (item) {
return item.label === _t('Embed');
});
this.sidebar.items.other = no_embed;
console.log('Tree view222',this.sidebar.items.other); // Here, only shows to record, Export and Delete. But in view all Options are listing.
}
});
注意:
现在下拉视图看起来像,
标签 - > 功能