summaryrefslogtreecommitdiff
path: root/addons/note
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-08-26 15:18:36 +0200
committerThibault Delavallée <tde@openerp.com>2015-08-28 17:36:16 +0200
commit59c5ff08beb07d455f1e0d5eaa072c784949d3be (patch)
tree9e42938fe355285c755ac963464c4d8731b1d59a /addons/note
parent01ab75f597d6ff8f3f570b4c316179654caf7b1c (diff)
[IMP] various: action buttons in notifications
Main addons updated : - crm: Conversion and Won / Lost actions - hr_holidays: Approve / Refuse for hr users / officers - project: Assign / New (task and issues) - forum, website_project_issue, website_portal_sale: go to the website view
Diffstat (limited to 'addons/note')
-rw-r--r--addons/note/note.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/addons/note/note.py b/addons/note/note.py
index b2ba017bbd1..be2a51ceb46 100644
--- a/addons/note/note.py
+++ b/addons/note/note.py
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp import SUPERUSER_ID
+from openerp import _, SUPERUSER_ID
from openerp.osv import osv, fields
from openerp.tools import html2plaintext
@@ -156,6 +156,13 @@ class note_note(osv.osv):
return super(note_note, self).read_group(cr, uid, domain, fields, groupby,
offset=offset, limit=limit, context=context, orderby=orderby,lazy=lazy)
+ def _notification_get_recipient_groups(self, cr, uid, ids, message, recipients, context=None):
+ res = super(note_note, self)._notification_get_recipient_groups(cr, uid, ids, message, recipients, context=context)
+ res['user'] = {
+ 'actions': [{'url': self._notification_link_helper(cr, uid, ids, 'new', context=context), 'title': _('New Note')}]
+ }
+ return res
+
class res_users(osv.Model):
_name = 'res.users'