diff options
| author | Rémy Voet (ryv) <ryv@odoo.com> | 2020-01-08 10:09:20 +0000 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2020-01-21 16:40:06 +0000 |
| commit | 15c934a1abfc72c965a6b46618b7b2ae6fad49cc (patch) | |
| tree | 6494f8b926cdf8a45e47d67f4ef6389e3bd3721a /addons/mail/security/mail_security.xml | |
| parent | e3ff7a49ae261c22336e6fdfcc01c33b7e9b2229 (diff) | |
[IMP] (website_)mail: improve routes and management of mail followers
Purpose of this commit is to improve model of followers, notably management
code and its use in routes. Indeed it is quite an old model and code had
to be cleaned a bit to improve code readability and maintenance.
In this commit we
* remove unnecessary code examples in gamification about followers: using
that model as example of code for goals is probably not a good idea as it
is technical;
* rewrite routes called by JS are simplified to better match JS
implementation;
* introduce computed fields to fetch related partner or channel name,
email (partner only) and active status;
LINKS
Task 1933771
Task 2078313
closes odoo/odoo#39808
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Co-authored-by: Remy Voet <ryv@odoo.com>
Co-authored-by: jgi-odoo <jgi@odoo.com>
Co-authored-by: Xavier-Do <xdo@odoo.com>
Diffstat (limited to 'addons/mail/security/mail_security.xml')
| -rw-r--r-- | addons/mail/security/mail_security.xml | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/addons/mail/security/mail_security.xml b/addons/mail/security/mail_security.xml index 3ffe43e35eb..3a98e1bddb2 100644 --- a/addons/mail/security/mail_security.xml +++ b/addons/mail/security/mail_security.xml @@ -14,16 +14,6 @@ </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"/> - <field name="groups" eval="[(4, ref('base.group_user')), (4, ref('base.group_portal'))]"/> - <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> - <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"/> |
