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
| 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) |
|
