23 lines
630 B
Python
23 lines
630 B
Python
|
# -*- coding: utf-8 -*-
|
||
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||
|
|
||
|
from odoo import _, fields, models
|
||
|
|
||
|
|
||
|
class Users(models.Model):
|
||
|
_inherit = 'res.users'
|
||
|
|
||
|
create_date = fields.Datetime('Create Date', readonly=True, index=True)
|
||
|
|
||
|
# Wrapper for call_kw with inherits
|
||
|
def open_website_url(self):
|
||
|
return self.mapped('partner_id').open_website_url()
|
||
|
|
||
|
def get_gamification_redirection_data(self):
|
||
|
res = super().get_gamification_redirection_data()
|
||
|
res.append({
|
||
|
'label': _('See our Forum'),
|
||
|
'url': '/forum',
|
||
|
})
|
||
|
return res
|