Adds slides ands slide.channels specific information (courses) into the website_profile template page. As there can be more than one slide.channel,the profile page shows everything linked to every slide.channel, except if the channel_id is given in url arguments. Adds the 'Go to eLearning' button in the 'new rank reached' mail to encourage the users to continue to be active on the eLearning platform as well, to gain more karma point and improve there rank. Task ID : 1922159 PR #30988
17 lines
421 B
Python
17 lines
421 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
from odoo import models
|
|
|
|
|
|
class Users(models.Model):
|
|
_inherit = 'res.users'
|
|
|
|
def get_gamification_redirection_data(self):
|
|
res = super(Users, self).get_gamification_redirection_data()
|
|
res.append({
|
|
'url': '/slides',
|
|
'label': 'See our eLearning'
|
|
})
|
|
return res
|