mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[IMP] auth_admin: add new wizard and use CopyClipboardChar widget
H13350
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<field name="inherit_id" ref="portal.wizard_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='is_portal']" position="after">
|
||||
<field name="force_login_url"/>
|
||||
<field name="force_login_url" widget="CopyClipboardChar"/>
|
||||
</xpath>
|
||||
<xpath expr="//tree/button[last()]" position="after">
|
||||
<button string="Generate Login URL" type="object" name="admin_auth_generate_login" class="btn-primary" />
|
||||
@@ -15,4 +15,4 @@
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
</odoo>
|
||||
|
||||
18
auth_admin/wizard/res_users_wizard_views.xml
Normal file
18
auth_admin/wizard/res_users_wizard_views.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="res_users_wizard" model="ir.ui.view">
|
||||
<field name="name">Generate Login URL</field>
|
||||
<field name="model">res.users.wizard</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="Generate Login URL">
|
||||
<sheet>
|
||||
<group>
|
||||
<field name="force_login_url" widget="CopyClipboardChar"/>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user