diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-08-04 15:24:19 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-08-21 12:11:56 +0200 |
| commit | c02982b4c46c107008d3bedc73e45248d8067b90 (patch) | |
| tree | 29f0ac2303011c70341b950f35cb0f6043efe913 /addons/mail/security/mail_security.xml | |
| parent | e6f038a8216c249a3ce7d9f490010d9f666f3375 (diff) | |
[REF] mail: mail_channel update
Some features from live_chat have been moved to the mail module :
- channels now have members, replacing followers;
- a decorated m2m is used to link channels and members. It stores the last
seen message on the channel for a specific partner;
- channels do not create menu entries anymore, because the
NewChatter will have its own display and use of channels;
- access rights have been updated accordingly, using members instead of
followers
Diffstat (limited to 'addons/mail/security/mail_security.xml')
| -rw-r--r-- | addons/mail/security/mail_security.xml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml index 642975ea7a5..c2b9ca230b9 100644 --- a/addons/mail/security/mail_security.xml +++ b/addons/mail/security/mail_security.xml @@ -6,8 +6,10 @@ <record id="mail_channel_rule" model="ir.rule"> <field name="name">Mail.channel: access only public and joined groups</field> <field name="model_id" ref="model_mail_channel"/> - <!-- This rule has to be improved for employee only groups --> - <field name="domain_force">['|', '|', ('public', '=', 'public'), ('message_partner_ids', 'in', [user.partner_id.id]), '&', ('public','=','groups'), ('group_public_id','in', [g.id for g in user.groups_id])]</field> + <field name="domain_force">['|', '|', +('public', '=', 'public'), +'&', ('public', '=', 'private'), ('channel_partner_ids', 'in', [user.partner_id.id]), +'&', ('public', '=', 'groups'), ('group_public_id', 'in', [g.id for g in user.groups_id])]</field> <field name="perm_create" eval="False"/> </record> |
