[FIX] terminology
The last time when a user connected to Odoo is a different concept than the last time when a user authenticated to Odoo. I can authenticate once and connect many times afterwards (cookie/session). closes odoo/odoo#27963
This commit is contained in:
@@ -228,7 +228,7 @@ class Users(models.Model):
|
||||
help="If specified, this action will be opened at log on for this user, in addition to the standard menu.")
|
||||
groups_id = fields.Many2many('res.groups', 'res_groups_users_rel', 'uid', 'gid', string='Groups', default=_default_groups)
|
||||
log_ids = fields.One2many('res.users.log', 'create_uid', string='User log entries')
|
||||
login_date = fields.Datetime(related='log_ids.create_date', string='Latest connection', readonly=False)
|
||||
login_date = fields.Datetime(related='log_ids.create_date', string='Latest authentication', readonly=False)
|
||||
share = fields.Boolean(compute='_compute_share', compute_sudo=True, string='Share User', store=True,
|
||||
help="External user with limited access, created only for the purpose of sharing data.")
|
||||
companies_count = fields.Integer(compute='_compute_companies_count', string="Number of Companies", default=_companies_count)
|
||||
|
||||
Reference in New Issue
Block a user