summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2016-02-17 13:01:10 +0100
committerYannick Tivisse <yti@odoo.com>2016-03-07 14:24:18 +0100
commit0c2bbf6da689912df3574bccfa779fa9e9971ca2 (patch)
tree94e9e9aad430ef6facfef4750ce11b1f337f4d83 /addons
parent271840a282f1fcfc813ce58ae3b062059eeb265a (diff)
[FIX] website_project_issue: Don't always display 'View Issue'
This override was always sending the document to all the recipients. If the user is only a follower, he sees the button but cannot access to My Account as he's not a user.
Diffstat (limited to 'addons')
-rw-r--r--addons/website_project_issue/models/project_issue.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/addons/website_project_issue/models/project_issue.py b/addons/website_project_issue/models/project_issue.py
index 90238037a6e..a3dd4170826 100644
--- a/addons/website_project_issue/models/project_issue.py
+++ b/addons/website_project_issue/models/project_issue.py
@@ -19,14 +19,3 @@ class Issue(models.Model):
'target': 'self',
'res_id': self.id,
}
-
- @api.multi
- def _notification_get_recipient_groups(self, message, recipients):
- """ Override to set the access button: everyone can see an access button
- on their notification email. It will lead on the website view of the
- post. """
- res = super(Issue, self)._notification_get_recipient_groups(message, recipients)
- access_action = self._notification_link_helper('view', model=message.model, res_id=message.res_id)
- for category, data in res.iteritems():
- res[category]['button_access'] = {'url': access_action, 'title': _('View Issue')}
- return res