From 15c934a1abfc72c965a6b46618b7b2ae6fad49cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20Voet=20=28ryv=29?= Date: Wed, 8 Jan 2020 10:09:20 +0000 Subject: [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) Co-authored-by: Remy Voet Co-authored-by: jgi-odoo Co-authored-by: Xavier-Do --- addons/mail/security/mail_security.xml | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'addons/mail/security/mail_security.xml') 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 @@ - - mail.followers: write its own entries - - - [('partner_id', '=', user.partner_id.id)] - - - - - mail.notifications: group_user: write its own entries -- cgit v1.2.3