[MIG] auth_admin: to 17.0

This commit is contained in:
Salomon Chambi
2023-11-13 21:55:45 +00:00
committed by Mayank Patel
parent 46f888e9f0
commit 1429f38df6
3 changed files with 11 additions and 6 deletions

View File

@@ -1,8 +1,8 @@
{ {
'name': 'Auth Admin', 'name': 'Auth Admin',
'author': 'Hibou Corp. <hello@hibou.io>', 'author': 'Hibou Corp.',
'category': 'Hidden', 'category': 'Hidden',
'version': '16.0.1.0.0', 'version': '17.0.1.0.0',
'description': 'description':
""" """
Login as other user Login as other user
@@ -14,6 +14,9 @@ Can also create a URL that logs in as that user.
Out of the box, only allows you to generate a login for an 'External User', e.g. portal users. Out of the box, only allows you to generate a login for an 'External User', e.g. portal users.
*2017-11-15* New button to generate the login on the Portal User Wizard (Action on Contact) *2017-11-15* New button to generate the login on the Portal User Wizard (Action on Contact)
Added the option to copy the Force Login URL by simply clicking the Copy widget in the Portal User Wizard.
""", """,
'depends': [ 'depends': [
'base', 'base',

View File

@@ -7,7 +7,9 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//tree" position="inside"> <xpath expr="//tree" position="inside">
<field name="share" invisible="1"/> <field name="share" invisible="1"/>
<button string="Generate Login" type="object" name="admin_auth_generate_login" attrs="{'invisible': [('share', '=', False)]}"/> <button string="Generate Login" type="object"
name="admin_auth_generate_login"
invisible="not share"/>
</xpath> </xpath>
</field> </field>
</record> </record>

View File

@@ -7,7 +7,7 @@
<field name="inherit_id" ref="portal.wizard_view"/> <field name="inherit_id" ref="portal.wizard_view"/>
<field name="arch" type="xml"> <field name="arch" type="xml">
<xpath expr="//field[@name='is_portal']" position="after"> <xpath expr="//field[@name='is_portal']" position="after">
<field name="force_login_url"/> <field name="force_login_url" widget="CopyClipboardChar"/>
</xpath> </xpath>
<xpath expr="//tree/button[last()]" position="after"> <xpath expr="//tree/button[last()]" position="after">
<button string="Generate Login URL" type="object" name="admin_auth_generate_login" class="btn-primary" /> <button string="Generate Login URL" type="object" name="admin_auth_generate_login" class="btn-primary" />