diff options
| author | Thibault Delavallée <tde@openerp.com> | 2015-06-25 13:30:49 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2015-07-01 12:52:52 +0200 |
| commit | 9cd9aaaa174ae1f2a0af12143a34eb4682ea6f59 (patch) | |
| tree | a7cd689bde502f94131753b92c41666cb7c6709c /addons/mail/security/mail_security.xml | |
| parent | 0a446f976f11d5145e8035ec2decfcacdf3d306c (diff) | |
[IMP] mail: new internal-only subtype feature.
Starting from now, subtypes can be internal. This means that only employees
(group_user members) can see the messages with this subtype. This feature
replaces and enhances the 'log a note = no subtype = internal only'
feature.
Public and portal users cannot see internal messages. This allows to have
subtypes and a follow mechanism that works for employees and is not
visible for external people.
Its first use will be for Crm Activities, allowing to have custom
subtypes visible only for salesman and not send to the customer.
Diffstat (limited to 'addons/mail/security/mail_security.xml')
| -rw-r--r-- | addons/mail/security/mail_security.xml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml index 5384e2aba95..2f07c659c95 100644 --- a/addons/mail/security/mail_security.xml +++ b/addons/mail/security/mail_security.xml @@ -38,6 +38,13 @@ <field name="perm_unlink" eval="False"/> </record> + <record id="mail_message_subtype_rule_public" model="ir.rule"> + <field name="name">mail.message.subtype: portal/public: read public subtypes</field> + <field name="model_id" ref="model_mail_message_subtype"/> + <field name="domain_force">[('internal', '=', False)]</field> + <field name="groups" eval="[(4, ref('base.group_portal')), (4, ref('base.group_public'))]"/> + </record> + <!-- This rule can not be uncommented, because we have a more wide method in mail.message. When we implement a many2one_variable field, we will be able to uncomment this. <record id="mail_message_read_partner_or_author" model="ir.rule"> |
