From 9d7ad0fe547ea6e1fae85471aff7812808075a2b Mon Sep 17 00:00:00 2001 From: Fabrice Henrion Date: Fri, 19 Oct 2018 08:02:17 +0000 Subject: [PATCH] [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 --- odoo/addons/base/models/res_users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odoo/addons/base/models/res_users.py b/odoo/addons/base/models/res_users.py index 17ad94b6c24..e2434a8ea5d 100644 --- a/odoo/addons/base/models/res_users.py +++ b/odoo/addons/base/models/res_users.py @@ -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)