diff --git a/addons/note/models/note.py b/addons/note/models/note.py index a12d8aee68f..279c377fc63 100644 --- a/addons/note/models/note.py +++ b/addons/note/models/note.py @@ -126,7 +126,9 @@ class Note(models.Model): groups = super(Note, self)._notification_recipients(message, groups) new_action_id = self.env['ir.model.data'].xmlid_to_res_id('note.action_note_note') new_action = self._notification_link_helper('new', action_id=new_action_id) - groups['user']['actions'] = [{'url': new_action, 'title': _('New Note')}] + for group, method, kwargs in groups: + if group == 'user': + kwargs.setdefault('actions', []).append({'url': new_action, 'title': _('New Note')}) return groups @api.multi