forked from OCA/connector-telephony
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathasterisk_server_view.xml
88 lines (80 loc) · 3.17 KB
/
asterisk_server_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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="utf-8"?>
<!--
Asterisk Click2dial module for OpenERP
Copyright (C) 2010-2014 Alexis de Lattre <[email protected]>
The licence is in the file __openerp__.py
-->
<openerp>
<data>
<!-- Search view for asterisk.server -->
<record id="view_asterisk_server_search" model="ir.ui.view">
<field name="name">asterisk.server.search</field>
<field name="model">asterisk.server</field>
<field name="arch" type="xml">
<search string="Asterisk Server Search">
<field name="name"
filter_domain="['|', ('name', 'ilike', self), ('ip_address', 'ilike', self)]"/>
</search>
</field>
</record>
<!-- Form view for asterisk.server -->
<record id="view_asterisk_server_form" model="ir.ui.view">
<field name="name">asterisk.server.form</field>
<field name="model">asterisk.server</field>
<field name="arch" type="xml">
<form string="Asterisk Servers" version="7.0">
<sheet>
<div class="oe_title">
<label for="name" string="Server Name" class="oe_edit_only"/>
<h1>
<field name="name"/>
</h1>
</div>
<group name="main">
<field name="company_id"
groups="base.group_multi_company"/>
<field name="active" />
</group>
<group name="ami" string="Asterisk Manager Interface">
<field name="ip_address" />
<field name="port" />
<field name="login" />
<field name="password" password="True" />
<button name="test_ami_connection" type="object"
string="Test Connection to Asterisk"
icon="gtk-network" colspan="2"/>
</group>
<group name="dialplan" string="Dialplan Parameters">
<field name="context" />
<field name="extension_priority" />
<field name="out_prefix" />
<field name="alert_info" />
<field name="wait_time" />
</group>
</sheet>
</form>
</field>
</record>
<!-- Tree view for asterisk.server -->
<record id="view_asterisk_server_tree" model="ir.ui.view">
<field name="name">asterisk.server.tree</field>
<field name="model">asterisk.server</field>
<field name="arch" type="xml">
<tree string="Asterisk Servers">
<field name="name" />
<field name="ip_address" />
<field name="company_id"
groups="base.group_multi_company" />
</tree>
</field>
</record>
<!-- Action for asterisk.server -->
<record id="action_asterisk_server" model="ir.actions.act_window">
<field name="name">Asterisk Servers</field>
<field name="res_model">asterisk.server</field>
<field name="view_mode">tree,form</field>
</record>
<!-- Menu entry under Settings > Technical > Phone -->
<menuitem action="action_asterisk_server" id="act_menu_ast_server" parent="base_phone.menu_config_phone" sequence="50"/>
</data>
</openerp>