-
-
Notifications
You must be signed in to change notification settings - Fork 518
Expand file tree
/
Copy pathres_users.xml
More file actions
54 lines (54 loc) · 2.29 KB
/
res_users.xml
File metadata and controls
54 lines (54 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="view_users_form" model="ir.ui.view">
<field name="name">auth_oauth_multi_token user form</field>
<field name="model">res.users</field>
<field name="type">form</field>
<field name="inherit_id" ref="base.view_users_form" />
<field name="arch" type="xml">
<xpath expr="//page[@name='page_security']" position="inside">
<separator string="OAuth Tokens" colspan="4" />
<div
name="oauth_access_max_token"
groups="base.group_system"
class="d-md-flex mt-3"
>
<div class="col-md-6 col-lg-3 d-flex flex-column">
<label for="oauth_access_max_token" class="o_form_label" />
<span class="text-muted">
Recommended for extra security.
</span>
</div>
<div class="w-md-50 w-lg-75 d-flex flex-column my-auto">
<field name="oauth_access_max_token" />
</div>
</div>
<div
name="multi_token_info"
groups="base.group_system"
class="d-md-flex mt-3"
>
<div class="col-md-6 col-lg-3 d-flex flex-column" />
<div class="w-md-50 w-lg-75 d-flex flex-column my-auto">
<field
name="oauth_access_token_ids"
options="{'no_create': True, 'no_open': True}"
>
<list limit="10">
<field name="create_date" />
</list>
</field>
<div>
<button
string="Clear Tokens"
type="object"
name="action_oauth_clear_token"
class="btn btn-secondary h-100"
/>
</div>
</div>
</div>
</xpath>
</field>
</record>
</odoo>