跳至内容
菜单
此问题已终结
2 回复
4404 查看

How can I block "compose new message" for all users? It is a pop up windows coming out after clicking on the mail icon on the top-right (next to the username).

形象
丢弃
最佳答案

The below code to hide icon "compose new message" all users including admin.

File Path: addons\mail\static\src\xml\mail.xml

The below mail template uncomment the div tab

   <t t-name="mail.ComposeMessageTopButton">
       <!-- <div title='Compose new Message' class="oe_topbar_item oe_topbar_compose_full_email">
            <button class="oe_e">%</button>
        </div> -->
    </t>

形象
丢弃
编写者 最佳答案

It is working fine, thanks.

形象
丢弃
相关帖文 回复 查看 活动
0
6月 25
497
1
5月 25
1201
0
2月 25
1208
1
11月 24
2058
0
10月 23
40