Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: OAuth2 Authentication

Entity: res.users

Compute Method: _compute_has_oauth_access_token

View 19.0 View 20.0
Inputs Method Outputs
+ if not (self.env.su or self.env.user.has_group('base.group_erp_manager')):
+             self.has_oauth_access_token = False
+             self = self.filtered(lambda u: u._origin == self.env.user).with_prefetch()
for user in self:
            user.has_oauth_access_token = bool(user.sudo().oauth_access_token)
  • has_oauth_access_token

Back to entity