summaryrefslogtreecommitdiff
path: root/addons/note
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-09-22 10:27:26 +0200
committerThibault Delavallée <tde@openerp.com>2015-09-22 10:28:01 +0200
commit396c5db41a37a413a93116f35a105c5f4aa3cbe3 (patch)
treed589204315dfcdeab240ab2d00270181932f657a /addons/note
parenta85221875936197ea6bc21d17c46a611519d7cec (diff)
[FIX] mail, various: buttons in notifications
Various fixes : - new button (task / issue / note) param name + correct action - method button fix
Diffstat (limited to 'addons/note')
-rw-r--r--addons/note/note.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/note/note.py b/addons/note/note.py
index 98055143ee3..0818d03d471 100644
--- a/addons/note/note.py
+++ b/addons/note/note.py
@@ -159,8 +159,10 @@ class note_note(osv.osv):
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)
+ new_action_id = self.pool['ir.model.data'].xmlid_to_res_id(cr, uid, 'note.action_note_note')
+ new_action = self._notification_link_helper(cr, uid, ids, 'new', context=context, action_id=new_action_id)
res['user'] = {
- 'actions': [{'url': self._notification_link_helper(cr, uid, ids, 'new', context=context), 'title': _('New Note')}]
+ 'actions': [{'url': new_action, 'title': _('New Note')}]
}
return res