summaryrefslogtreecommitdiff
path: root/addons/project/project.py
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/project/project.py
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/project/project.py')
-rw-r--r--addons/project/project.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/project/project.py b/addons/project/project.py
index d3333c89fe6..e61251e465a 100644
--- a/addons/project/project.py
+++ b/addons/project/project.py
@@ -750,7 +750,8 @@ class task(osv.osv):
res = super(task, self)._notification_get_recipient_groups(cr, uid, ids, message, recipients, context=context)
take_action = self._notification_link_helper(cr, uid, ids, 'assign', context=context)
- new_action = self._notification_link_helper(cr, uid, ids, 'new', context=context, view_xmlid='project.action_view_task')
+ new_action_id = self.pool['ir.model.data'].xmlid_to_res_id(cr, uid, 'project.action_view_task')
+ new_action = self._notification_link_helper(cr, uid, ids, 'new', context=context, action_id=new_action_id)
task_record = self.browse(cr, uid, ids[0], context=context)
actions = []