summaryrefslogtreecommitdiff
path: root/addons/im_livechat/security
diff options
context:
space:
mode:
authorVictor Feyens <vfe@odoo.com>2020-03-10 18:07:12 +0100
committerMartin Trigaux <mat@odoo.com>2020-03-20 16:21:25 +0100
commita3ded9043d34229e4547e16625a86dfbebdbcfaf (patch)
treec3269408cd9534e7abc63b6c730a9fc7108997bc /addons/im_livechat/security
parent532c083cbbe0ee6e7a940e2bdc9c677bd56b62fa (diff)
[IMP] *: declare ir.rule in noupdate
ir.rule are default values but can be customized based on the company's policy and needs. This is typically a record that is in noupdate as should be customization-friendly.
Diffstat (limited to 'addons/im_livechat/security')
-rw-r--r--addons/im_livechat/security/im_livechat_channel_security.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/im_livechat/security/im_livechat_channel_security.xml b/addons/im_livechat/security/im_livechat_channel_security.xml
index be4753f9d4a..89c1910ee85 100644
--- a/addons/im_livechat/security/im_livechat_channel_security.xml
+++ b/addons/im_livechat/security/im_livechat_channel_security.xml
@@ -20,6 +20,7 @@
<field name="users" eval="[(4, ref('base.user_root')), (4, ref('base.user_admin'))]"/>
</record>
+ <data noupdate="1">
<record id="im_livechat_rule_manager_read_all_mail_channel" model="ir.rule">
<field name="name">Livechat: Administrator: read all livechat channel</field>
<field name="model_id" ref="model_mail_channel"/>
@@ -31,7 +32,7 @@
<field name="perm_unlink" eval="False"/>
</record>
- <data noupdate="1">
+
<record id="base.default_user" model="res.users">
<field name="groups_id" eval="[(4,ref('im_livechat.im_livechat_group_manager'))]"/>
</record>