跳至內容
選單
此問題已被標幟
1 回覆
10826 瀏覽次數

We're using Project module, which installs the discuss module, but we use mattermost instead of built-in Odoo applications. I've removed the 'Discuss' menu item, but I can't find how to remove the two icons just at the left of were the user name is shown (inbox and conversations).

In the html code source, it uses a class named systray or something and javascript refers to template mail.chat.MessagingMenu.

Any idea?


頭像
捨棄
最佳答案

Bad hack to do this,but

1. Open \server\odoo\addons\mail\static\src\xml\systray.xml

2. Comment out the following:

<!--li class="o_mail_navbar_item">            
    <a href="#" title="Inbox">
    <i class="fa fa-at"/> <span class="o_notification_counter"/>
    </a>
</li-->


and


<!--li class="o_mail_navbar_item">
 <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false" title="Conversations" href="#">
     <i class="fa fa-comments"/> <span class="o_notification_counter"/>
</a>
 <ul class="o_mail_navbar_dropdown dropdown-menu" role="menu">
    <li class="o_mail_navbar_dropdown_top">
        <div>
            <button type="button" class="btn btn-sm o_filter_button o_selected"> All </button>
            <button type="button" class="btn btn-sm o_filter_button" data-filter='chat'> Chat </button>
            <button type="button" class="btn btn-sm o_filter_button" data-filter='channels'> Channels </button>
        </div>
    <button type="button" class="btn btn-sm o_new_message"> New message </button>
    </li>
    <li class="o_mail_navbar_dropdown_channels"/>
 </ul>
</li-->
頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
12月 24
1018
4
10月 19
33577
1
4月 17
3777
2
3月 15
7159
2
1月 24
13741