-
-
Notifications
You must be signed in to change notification settings - Fork 531
Expand file tree
/
Copy pathauth_api_key.xml
More file actions
64 lines (64 loc) · 2.66 KB
/
Copy pathauth_api_key.xml
File metadata and controls
64 lines (64 loc) · 2.66 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
55
56
57
58
59
60
61
62
63
64
<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2019 ACSONE SA/NV
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). -->
<odoo>
<record model="ir.ui.view" id="auth_api_key_form_view">
<field name="name">auth.api.key.form (in auth_api_key)</field>
<field name="model">auth.api.key</field>
<field name="arch" type="xml">
<form>
<sheet>
<field name="active" invisible="1" />
<widget
name="web_ribbon"
title="Archived"
bg_color="bg-danger"
invisible="active"
/>
<label for="name" class="oe_edit_only" />
<h1>
<field name="name" class="oe_inline" />
</h1>
<group name="config" colspan="4" col="4">
<field name="user_id" colspan="4" />
<label for="key" />
<div class="o_row" colspan="3">
<!-- The password widget masks the key and provides a reveal button. -->
<field name="key" widget="password" required="1" />
<button
name="generate_random_key"
string="Generate Random Token"
type="object"
class="btn-secondary"
invisible="key"
/>
</div>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.ui.view" id="auth_api_key_tree_view">
<field name="name">auth.api.key.list (in auth_api_key)</field>
<field name="model">auth.api.key</field>
<field name="arch" type="xml">
<list>
<field name="name" />
<field name="user_id" />
</list>
</field>
</record>
<record model="ir.actions.act_window" id="auth_api_key_act_window">
<field name="name">Auth Api Key</field>
<field name="res_model">auth.api.key</field>
<field name="view_mode">list,form</field>
<field name="domain">[]</field>
<field name="context">{}</field>
</record>
<record model="ir.ui.menu" id="auth_api_key_menu">
<field name="name">Auth Api Key</field>
<field name="parent_id" ref="base.menu_custom" />
<field name="action" ref="auth_api_key_act_window" />
<field name="sequence" eval="100" />
</record>
</odoo>