[FIX] website_blog: old api call without cr, uid, ids
opw-672398
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user