mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[MIG] auth_admin: Migrate to 18.0
H14631
This commit is contained in:
@@ -17,7 +17,7 @@ def admin_auth_generate_login(env, user):
|
||||
:param user: `res.users` in
|
||||
:return:
|
||||
"""
|
||||
if not env['res.partner'].check_access_rights('write'):
|
||||
if not env['res.partner'].has_access('write'):
|
||||
return None
|
||||
u = str(user.id)
|
||||
now = datetime.utcnow()
|
||||
|
||||
Reference in New Issue
Block a user