summaryrefslogtreecommitdiff
path: root/addons/mail/security
diff options
context:
space:
mode:
authorGert Pellin <gpe@odoo.com>2018-08-29 08:30:31 +0200
committerThibault Delavallée <tde@odoo.com>2018-09-17 13:56:39 +0200
commit76a557c9ace456bdc538d90992b6aeaacc3c3395 (patch)
treeefb263ff6eec36c10c34cd6886a9703aa1359d6a /addons/mail/security
parent261c72e8898b7c8e87f10906b0bfa15812fda98b (diff)
[IMP] hr,mail: auto-subscribe departments to channels
Purpose of this commit is to allow to make private channels linked to an HR department with an auto subscription. It will ease the use of discussion channels among employees of a given department. Moreover auto subscription is useful to avoid having to manually synchronize channel members and department members. This commit is linked to task ID 1848526 and closes PR #26650 . Co-authored-by: Gert Pellin <gpe@odoo.com> Co-authored-by: Richard Mathot <rim@odoo.com>
Diffstat (limited to 'addons/mail/security')
-rw-r--r--addons/mail/security/mail_security.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml
index d6d33578664..7a97925b42b 100644
--- a/addons/mail/security/mail_security.xml
+++ b/addons/mail/security/mail_security.xml
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
- <data noupdate="1">
-
+ <data noupdate="0">
<!-- RULES -->
<record id="mail_channel_rule" model="ir.rule">
<field name="name">Mail.channel: access only public and joined groups</field>
@@ -12,7 +11,8 @@
'&amp;', ('public', '=', 'groups'), ('group_public_id', 'in', [g.id for g in user.groups_id])]</field>
<field name="perm_create" eval="False"/>
</record>
-
+ </data>
+ <data noupdate="1">
<record id="mail_followers_read_write_own" model="ir.rule">
<field name="name">mail.followers: write its own entries</field>
<field name="model_id" ref="model_mail_followers"/>