diff options
| author | jem-odoo <jem@openerp.com> | 2019-02-13 12:38:26 +0000 |
|---|---|---|
| committer | David Beguin <dbe@odoo.com> | 2019-02-14 09:24:10 +0000 |
| commit | ec212de5c7a7b0f4b74549add62a2988f5b38ee6 (patch) | |
| tree | 138b0f195bd0be035c7435b3ede9fdceb0036b26 /addons/website_profile/controllers/main.py | |
| parent | a4a0436ddd51a84e35fa68a13833886ffbb63174 (diff) | |
[IMP] gamification,forum: remove deprecated alert when sending badge
Since 56645335b7bae0415242ec51193e493119a58879, when a user get a badge,
an email is sent. The subtype is not used anymore, so the alert
mecanism in forum to display a message to the user to show him
his new badges can not work.
This commit removes this dead code.
Task-1922159
Diffstat (limited to 'addons/website_profile/controllers/main.py')
| -rw-r--r-- | addons/website_profile/controllers/main.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/addons/website_profile/controllers/main.py b/addons/website_profile/controllers/main.py index 3372f6954e9..b1a29efe708 100644 --- a/addons/website_profile/controllers/main.py +++ b/addons/website_profile/controllers/main.py @@ -59,7 +59,6 @@ class WebsiteProfile(http.Controller): values.update({ 'email_required': kwargs.get('email_required'), 'countries': countries, - 'notifications': self._get_badge_granted_messages(), 'url_param': kwargs.get('url_param'), }) return request.render("website_profile.user_profile_edit_main", values) @@ -108,13 +107,6 @@ class WebsiteProfile(http.Controller): # Badges # --------------------------------------------------- - def _get_badge_granted_messages(self): - badge_subtype = request.env.ref('gamification.mt_badge_granted', raise_if_not_found=False) - msg = request.env['mail.message'] - if badge_subtype: - msg = msg.search([('subtype_id', '=', badge_subtype.id), ('needaction', '=', True)]) - return msg - def _prepare_badges_domain(self, **kwargs): """ Hook for other modules to restrict the badges showed on profile page, depending of the context |
