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

Is there a way to prevent my users from canceling a chatter activity? Or alternatively remove that button to avoid this action?

形象
丢弃
最佳答案

you can revoke delete access right from the user to prevent cancel activity 
Settings / Technical / Security / Access Rights
search mail.activity model and uncheck uncheck boolean from types / Internal User

Note: it will revoke access from all the internal users, if you want to provide cancel access to some users then create a new user group and provide full access  

形象
丢弃

Deleting the Activity is required to complete it, so this won't work.

最佳答案

Hi,

1. To remove cancel button in the chatter of activity, Please add the following code static/src/xml directory,


<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">

    <t t-inherit="mail.Activity" t-inherit-mode="extension">
        <xpath expr="//i[hasclass('fa fa-times)]"" position="replace">
         
        </xpath>
    </t>

</templates>


2. Give XML path in the manifest


Hope it helps,


形象
丢弃
最佳答案

Remove button is way more easier, just inherit the xml template and remove it. If you need removing it, i'll help, you just need to let me know odoo version

形象
丢弃
相关帖文 回复 查看 活动
0
11月 20
3091
2
7月 23
5837
3
7月 25
6954
1
7月 25
344
1
5月 25
1127