summaryrefslogtreecommitdiff
path: root/addons/note/models/note.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/note/models/note.py')
-rw-r--r--addons/note/models/note.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/note/models/note.py b/addons/note/models/note.py
index 6fbe39477df..5578104c468 100644
--- a/addons/note/models/note.py
+++ b/addons/note/models/note.py
@@ -52,6 +52,14 @@ class Note(models.Model):
date_done = fields.Date('Date done')
color = fields.Integer(string='Color Index')
tag_ids = fields.Many2many('note.tag', 'note_tags_rel', 'note_id', 'tag_id', string='Tags')
+ message_partner_ids = fields.Many2many(
+ comodel_name='res.partner', string='Followers (Partners)',
+ compute='_get_followers', search='_search_follower_partners',
+ compute_sudo=True)
+ message_channel_ids = fields.Many2many(
+ comodel_name='mail.channel', string='Followers (Channels)',
+ compute='_get_followers', search='_search_follower_channels',
+ compute_sudo=True)
@api.depends('memo')
def _compute_name(self):