-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
iot_system_views.xml
62 lines (62 loc) · 2.3 KB
/
iot_system_views.xml
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
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<record id="iot_system_tree" model="ir.ui.view">
<field name="name">iot.communication.system.tree</field>
<field name="model">iot.communication.system</field>
<field name="arch" type="xml">
<tree create="0" delete="0">
<field name="name" />
</tree>
</field>
</record>
<record id="iot_system_form" model="ir.ui.view">
<field name="name">iot.communication.system.form</field>
<field name="model">iot.communication.system</field>
<field name="arch" type="xml">
<form create="0" delete="0" edit="0">
<header />
<sheet>
<div class="oe_title">
<h1>
<field name="name" />
</h1>
</div>
<notebook>
<page string="Devices" id="devices">
<field name="device_ids" readonly="True" />
</page>
<page string="Actions" id="actions">
<field
name="communication_system_action_ids"
readonly="True"
/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<record id="iot_system_action_tree" model="ir.ui.view">
<field name="name">iot.communication.system.action.tree</field>
<field name="model">iot.communication.system.action</field>
<field name="arch" type="xml">
<tree create="0" delete="0">
<field name="name" />
</tree>
</field>
</record>
<record model="ir.actions.act_window" id="iot_system_action">
<field name="name">IoT System</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">iot.communication.system</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
name="Systems"
sequence="90"
id="iot_system_menu"
action="iot_system_action"
parent="iot_configuration_menu"
groups="group_iot_manager"
/>
</odoo>