summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-12-09 13:51:16 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-12-09 13:57:47 +0000
commitd821999025fc541b59db06f92b29abc94527ec03 (patch)
treec0b3f17b34c3a4a2fbd3658c30858234d6cedbb2 /addons
parentb5e24e9760a0d6a53730bebfc4bd76fadf971b3a (diff)
[FIX] mail: restore "pencil" icon behaviour in Followers widget
When editing the followers, the "pencil" icon that leads to the edition of subtypes should be always be displayed, and not only when "debug" mode is activated. This commit restores this behaviour, as it was not the case any more. opw-2144399 closes odoo/odoo#41643 X-original-commit: fd65f85e755eb0b732e0876c1849a0f4806968f1 Signed-off-by: Jorge Pinna Puissant (jpp) <jpp@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/mail/controllers/main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/mail/controllers/main.py b/addons/mail/controllers/main.py
index a144112502b..2dbc9c09288 100644
--- a/addons/mail/controllers/main.py
+++ b/addons/mail/controllers/main.py
@@ -143,7 +143,9 @@ class MailController(http.Controller):
@http.route('/mail/read_followers', type='json', auth='user')
def read_followers(self, follower_ids, res_model):
followers = []
- is_editable = request.env['mail.followers'].user_has_groups('base.group_no_one')
+ # When editing the followers, the "pencil" icon that leads to the edition of subtypes
+ # should be always be displayed and not only when "debug" mode is activated.
+ is_editable = True
partner_id = request.env.user.partner_id
follower_id = None
follower_recs = request.env['mail.followers'].sudo().browse(follower_ids)