diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-08-04 12:38:44 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-08-21 12:11:56 +0200 |
| commit | e6f038a8216c249a3ce7d9f490010d9f666f3375 (patch) | |
| tree | be878f130637d68f319dfd9cf7171d73ebcf00c1 /addons/mail/security/mail_security.xml | |
| parent | 098fcb7e4e21b60b93c8e7724a4149e2520711e9 (diff) | |
[REF] mail: mail_thread: followers update
Followers can now be partners or channels. Partners following a document
will receive needaction, as previously. However people can follow documents
through channels. Members of a channel are able to listen to a stream
of messages using the channel. Those messages do not create needaction
messages. It is therefore possible to follow documents without receiving
too much notifications. For interesting documents subscribing with its
partner will create notification.
message_follower_ids fields is udpated. It is now a many2many to
mail.followers, not to res.partner anymore. A subscription can be either
a partner (partner_id) or a channel (channel_id).
Some access rules have been updated accordingly.
Diffstat (limited to 'addons/mail/security/mail_security.xml')
| -rw-r--r-- | addons/mail/security/mail_security.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml index c05d434c789..642975ea7a5 100644 --- a/addons/mail/security/mail_security.xml +++ b/addons/mail/security/mail_security.xml @@ -7,17 +7,18 @@ <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_follower_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'), ('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="perm_create" eval="False"/> </record> <record id="mail_followers_read_write_own" model="ir.rule"> - <field name="name">mail.followers: read and write its own entries</field> + <field name="name">mail.followers: write its own entries</field> <field name="model_id" ref="model_mail_followers"/> <field name="groups" eval="[(4, ref('base.group_user'))]"/> <field name="domain_force">[('partner_id', '=', user.partner_id.id)]</field> <field name="perm_create" eval="False"/> <field name="perm_unlink" eval="False"/> + <field name="perm_read" eval="False"/> </record> <!-- If technical rights then read and write others subscriptions --> |
