summaryrefslogtreecommitdiff
path: root/addons/mail/controllers
diff options
context:
space:
mode:
authorJulien Giannone <jgi@odoo.com>2019-03-22 15:46:01 +0000
committerJulien Giannone <jgi@odoo.com>2019-03-27 15:54:46 +0000
commit230177ffa9e60c79a2322314c935fb72cc3d72c6 (patch)
treebb2479ff449a6b12a8819d28ea9e0fa96a44230b /addons/mail/controllers
parentd2c75b7e864369490f1780fc017b8e91ae487788 (diff)
[IMP] mail: add a different layout for inactive followers
When displaying the followers of a document, followers who are set as inactive will be displayed in a different layout than the active ones. The purpose is to mark a clear difference between active and inactive followers. Task #1957849 closes odoo/odoo#32084 Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Diffstat (limited to 'addons/mail/controllers')
-rw-r--r--addons/mail/controllers/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/mail/controllers/main.py b/addons/mail/controllers/main.py
index 38965dcf79b..6b8cf59ccdc 100644
--- a/addons/mail/controllers/main.py
+++ b/addons/mail/controllers/main.py
@@ -136,6 +136,7 @@ class MailController(http.Controller):
'res_id': follower.partner_id.id or follower.channel_id.id,
'is_editable': is_editable,
'is_uid': is_uid,
+ 'active': follower.partner_id.active or bool(follower.channel_id),
})
return {
'followers': followers,