[FIX] website_blog: old api call without cr, uid, ids

opw-672398
This commit is contained in:
Denis Ledoux
2016-03-18 17:33:35 +01:00
parent 31eb1438a1
commit ecfbd3f9b7
+1 -1
View File
@@ -262,7 +262,7 @@ class BlogPost(osv.Model):
on their notification email. It will lead on the website view of the
post. """
res = super(BlogPost, self)._notification_get_recipient_groups(cr, uid, ids, message, recipients, context=context)
access_action = self._notification_link_helper('view', model=message.model, res_id=message.res_id)
access_action = self._notification_link_helper(cr, uid, ids, 'view', model=message.model, res_id=message.res_id)
for category, data in res.iteritems():
res[category]['button_access'] = {'url': access_action, 'title': _('View Blog Post')}
return res