diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-08-17 07:39:25 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-08-17 09:30:53 +0000 |
| commit | bfa00919cd893694c55d5fa9680c3dbbd1f66d3e (patch) | |
| tree | 417885cec009b6e47517688b08d9a7ef33b81e70 /addons/auth_totp | |
| parent | bfcc7dee8f40afb5f7dec4e2cf5a669c0682e2ed (diff) | |
[IMP] core: clarify making fields inaccessible
* add a constant to `fields` for that purpose
* add a test to ensure that it works as expected
* fix the formatter so it handles the pattern correctly
Diffstat (limited to 'addons/auth_totp')
| -rw-r--r-- | addons/auth_totp/models/res_users.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/auth_totp/models/res_users.py b/addons/auth_totp/models/res_users.py index 7ed28beddd3..bb703e3ee77 100644 --- a/addons/auth_totp/models/res_users.py +++ b/addons/auth_totp/models/res_users.py @@ -21,7 +21,7 @@ _logger = logging.getLogger(__name__) class Users(models.Model): _inherit = 'res.users' - totp_secret = fields.Char(copy=False, groups=".") # no access + totp_secret = fields.Char(copy=False, groups=fields.NO_ACCESS) totp_enabled = fields.Boolean(string="TOTP enabled", compute='_compute_totp_enabled') def __init__(self, pool, cr): |
