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:
@@ -2,7 +2,7 @@
|
||||
'name': 'Auth Admin',
|
||||
'author': 'Hibou Corp.',
|
||||
'category': 'Hidden',
|
||||
'version': '17.0.1.0.0',
|
||||
'version': '18.0.1.0.0',
|
||||
'description':
|
||||
"""
|
||||
Login as other user
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<field name="model">res.users</field>
|
||||
<field name="inherit_id" ref="base.view_users_tree"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//tree" position="inside">
|
||||
<xpath expr="//list" position="inside">
|
||||
<field name="share" invisible="1"/>
|
||||
<button string="Generate Login" type="object"
|
||||
name="admin_auth_generate_login"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<xpath expr="//field[@name='is_portal']" position="after">
|
||||
<field name="force_login_url" widget="CopyClipboardChar"/>
|
||||
</xpath>
|
||||
<xpath expr="//tree/button[last()]" position="after">
|
||||
<xpath expr="//list/button[last()]" position="after">
|
||||
<button string="Generate Login URL" type="object" name="admin_auth_generate_login" class="btn-primary" />
|
||||
</xpath>
|
||||
</field>
|
||||
|
||||
Reference in New Issue
Block a user