summaryrefslogtreecommitdiff
path: root/addons/auth_oauth/models/res_users.py
diff options
context:
space:
mode:
authorOlivier Dony <odo@openerp.com>2017-06-15 16:23:44 +0200
committerOlivier Dony <odo@openerp.com>2017-06-15 16:23:44 +0200
commit16714a7e71da91382bb111fad32282a65205dffd (patch)
tree3b04706ea80c08b9a592493f0bf99d0cf501bf3c /addons/auth_oauth/models/res_users.py
parenteaa3682bb609dc69a5499f2c223da479d0d9697b (diff)
[FIX] auth_oauth: correctly register token field
Diffstat (limited to 'addons/auth_oauth/models/res_users.py')
-rw-r--r--addons/auth_oauth/models/res_users.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/auth_oauth/models/res_users.py b/addons/auth_oauth/models/res_users.py
index f48802c2310..b10f19a28be 100644
--- a/addons/auth_oauth/models/res_users.py
+++ b/addons/auth_oauth/models/res_users.py
@@ -10,6 +10,8 @@ from odoo import api, fields, models
from odoo.exceptions import AccessDenied
from odoo.addons.auth_signup.models.res_users import SignupError
+from odoo.addons import base
+base.res.res_users.USER_PRIVATE_FIELDS.append('oauth_access_token')
class ResUsers(models.Model):
_inherit = 'res.users'