diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-09-30 17:23:30 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-09-30 17:23:30 +0200 |
| commit | c8cc54559b75a621e4444ecdca6abd901b45e494 (patch) | |
| tree | 92141325d4dbbf70bbfb8e0c040d4435c8d2378f /addons/note/models/note.py | |
| parent | b2804b1d2ae5fd7ec5c0eca79a8db77476badc84 (diff) | |
| parent | 91a14488250bc2bb405cc6d300359aa272642484 (diff) | |
[MERGE] forward port branch 10.0 up to 91a1448
Diffstat (limited to 'addons/note/models/note.py')
| -rw-r--r-- | addons/note/models/note.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/addons/note/models/note.py b/addons/note/models/note.py index 439722d13ee..432705347c7 100644 --- a/addons/note/models/note.py +++ b/addons/note/models/note.py @@ -121,14 +121,13 @@ class Note(models.Model): return super(Note, self).read_group(domain, fields, groupby, offset=offset, limit=limit, orderby=orderby, lazy=lazy) @api.multi - def _notification_get_recipient_groups(self, message, recipients): - res = super(Note, self)._notification_get_recipient_groups(message, recipients) + def _notification_recipients(self, message, groups): + """ All users can create a new note. """ + 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) - res['user'] = { - 'actions': [{'url': new_action, 'title': _('New Note')}] - } - return res + groups['user']['actions'] = [{'url': new_action, 'title': _('New Note')}] + return groups @api.multi def action_close(self): |
