forked from OCA/server-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase_external_dbsource_view.xml
60 lines (52 loc) · 2.08 KB
/
base_external_dbsource_view.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
<?xml version="1.0"?>
<openerp>
<data>
<!-- DBSource -->
<record model="ir.ui.view" id="view_dbsource_tree">
<field name="name">base.external.dbsource.tree</field>
<field name="model">base.external.dbsource</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="External DB Sources">
<field name="name"/>
<field name="connector"/>
<field name="conn_string"/>
</tree>
</field>
</record>
<record model="ir.ui.view" id="view_dbsource_form">
<field name="name">base.external.dbsource.form</field>
<field name="model">base.external.dbsource</field>
<field name="arch" type="xml">
<form string="External DB Source" version="7.0">
<sheet>
<group>
<group>
<field name="name"/>
</group>
<group>
<field name="password" password="True"/>
</group>
</group>
<group col="1">
<field name="connector"/>
<field name="conn_string"/>
<button name="connection_test" string="Test Connection" type="object" icon="gtk-network"/>
</group>
</sheet>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="action_dbsource">
<field name="name">External Database Sources</field>
<field name="res_model">base.external.dbsource</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_dbsource_tree"/>
</record>
<menuitem name="Database Sources"
id="menu_dbsource"
parent="base.next_id_9"
action="action_dbsource"/>
</data>
</openerp>