diff options
| author | Thibault Delavallée <tde@openerp.com> | 2016-07-07 16:03:05 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2016-09-01 12:57:56 +0200 |
| commit | 72dfcae2a4b03623e780b857abf37c7aec5b8456 (patch) | |
| tree | f5492bd2b33cb21fc8e8d3523a56d2b314007a2e /addons/mail/security/mail_security.xml | |
| parent | 21949937636a2b0fc5b71a2667eede1750e05175 (diff) | |
[IMP] mail: improve notification management for customers
Currently it is impossible in Discuss to know whether an email has been sent
to a customer and whether it failed or bounced. A notified partner has an
entry in the needaction m2m table. In this commit we decorate this table to
add fields about the email notification: is an email sent, did it failed, did
it bounce.
This information is kept only for customers. Internal users does not use this
information. Moreover their notification is deleted once the message is read
in the Chatter. This avoids having a notification table that grows quickly.
Chatter now holds a new icon for email details. It allows to know on a thread
status of emails sent to customers.
Diffstat (limited to 'addons/mail/security/mail_security.xml')
| -rw-r--r-- | addons/mail/security/mail_security.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml index deab4c51438..65495db6925 100644 --- a/addons/mail/security/mail_security.xml +++ b/addons/mail/security/mail_security.xml @@ -23,6 +23,16 @@ <field name="perm_read" eval="False"/> </record> + <record id="ir_rule_mail_notifications_group_user" model="ir.rule"> + <field name="name">mail.notifications: group_user: write its own entries</field> + <field name="model_id" ref="model_mail_notification"/> + <field name="groups" eval="[(4, ref('base.group_user'))]"/> + <field name="domain_force">[('res_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> + <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"/> |
