Auth Timeout

auth_timeout
REPOSITORY
REPOSITORYodoo/odoo
GIT
GIThttps://github.com/odoo/odoo.git
GIT FOLDER
GIT FOLDERhttps://github.com/odoo/odoo/tree/19.0/auth_timeout
VERSION
VERSION 0.1.0
CATEGORY
CATEGORYHidden/Tools
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo S.A.
MAINTAINERS
MAINTAINERSOdoo S.A.
COMMITTERS
COMMITTERSOdoo Translation Bot, Denis Ledoux, Xavier Morel, Tiffany Chang (tic), Stanislas Sobieski, Dylan Kiss (dyki)
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 01:51:46
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - auth_totp
    - web
    - base
    - auth_totp_mail
    - mail
    - base_setup
    - bus
    - web_tour
    - html_editor
    - auth_passkey
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
auth_passkey_groups_form auth.passkey.groups.form res.groups notebook Inherits base.view_groups_form
check_identity Check Identity ir.ui.view qweb New
Models touched (5)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • get_frontend_session_info(self)
    @api.model
    Extend the frontend session info with inactivity timeout and user login. dds the user's inactivity timeout (if applicable) to the session info returned to the frontend web client. :return: The updated session information dictionary. :rtype: dict
  • session_info(self)
    Extend the backend session info with inactivity timeout metadata. Adds the user's inactivity timeout (if applicable) to the session info returned to the backend web client. :return: The updated session information dictionary. :rtype: dict

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (12)
  • has_lock_timeout Boolean
    compute='_compute_has_lock_timeout' help="Requires re-authentication after the user's last connection" readonly=False
  • has_lock_timeout_inactivity Boolean
    compute='_compute_lock_timeout_inactivity_bool' help='Requires re-authentication after a period of user inactivity' readonly=False
  • lock_timeout Integer
    help='Time interval (in minutes) after which re-authentication is required, regardless of inactivity.' string='Session timeout'
  • lock_timeout_2fa_selection Selection
    compute='_compute_lock_timeout_2fa_selection' inverse='_inverse_lock_timeout_2fa_selection' args: [('without_2fa', 'Logout'), ('with_2fa', 'Logout with two-factor authentication')]
  • lock_timeout_delay_in_unit Integer
    compute='_compute_lock_timeout_delay_unit' readonly=False
  • lock_timeout_delay_unit Selection
    compute='_compute_lock_timeout_delay_unit' readonly=False args: DELAY_UNITS
  • lock_timeout_inactivity Integer
    help='Time (in minutes) of user inactivity after which re-authentication is required.' string='Inactivity timeout'
  • lock_timeout_inactivity_2fa_selection Selection
    compute='_compute_lock_timeout_inactivity_2fa_selection' inverse='_inverse_lock_timeout_inactivity_2fa_selection' args: [('without_2fa', 'Screen lock'), ('with_2fa', 'Screen lock with two-factor authentication')]
  • lock_timeout_inactivity_delay_in_unit Integer
    compute='_compute_lock_timeout_inactivity_delay_unit' readonly=False
  • lock_timeout_inactivity_delay_unit Selection
    compute='_compute_lock_timeout_inactivity_delay_unit' readonly=False args: DELAY_UNITS
  • lock_timeout_inactivity_mfa Boolean
    help='Enable two-factor authentication when the inactivity timeout is reached.' string='Require MFA on inactivity timeout'
  • lock_timeout_mfa Boolean
    help='Enable two-factor authentication when the session timeout is reached.' string='Require MFA on session timeout'
Public methods (3)
  • create(self, vals_list)
    @api.model_create_multi
    Override to invalidate `_get_lock_timeouts` cache if timeout fields are set on creation.
  • unlink(self)
    Override to invalidate `_get_lock_timeouts` cache if timeout fields exist on deleted records.
  • write(self, vals)
    Override to invalidate `_get_lock_timeouts` cache if timeout fields are updated.

New fields (0)

No new fields.

Public methods (0)

No public methods.