Skip to content

Commit

Permalink
[FIX] website_project_issue: No buttons for portal, customers
Browse files Browse the repository at this point in the history
Customers without an user account can do nothing with the button
in the notification, so it's better they don't have it.

partial backport of #4732a1

This commit closes odoo#22487
  • Loading branch information
yajo authored and JKE-be committed Mar 21, 2018
1 parent b3b0c02 commit 9e981f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions addons/website_project_issue/models/project_issue.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ def _notification_recipients(self, message, groups):
groups = super(Issue, self)._notification_recipients(message, groups)

for group_name, group_method, group_data in groups:
if group_name in ["customer", "portal"]:
continue

group_data['has_button_access'] = True

return groups

0 comments on commit 9e981f6

Please sign in to comment.