diff options
| author | Julien Giannone <jgi@odoo.com> | 2019-03-22 15:46:01 +0000 |
|---|---|---|
| committer | Julien Giannone <jgi@odoo.com> | 2019-03-27 15:54:46 +0000 |
| commit | 230177ffa9e60c79a2322314c935fb72cc3d72c6 (patch) | |
| tree | bb2479ff449a6b12a8819d28ea9e0fa96a44230b /addons/mail/controllers | |
| parent | d2c75b7e864369490f1780fc017b8e91ae487788 (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.py | 1 |
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, |
