You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
3.1 KiB
85 lines
3.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
© 2010-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
|
|
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
|
-->
|
|
|
|
<odoo>
|
|
<data>
|
|
|
|
<record id="view_freeswitch_server_search" model="ir.ui.view">
|
|
<field name="name">freeswitch.server.search</field>
|
|
<field name="model">freeswitch.server</field>
|
|
<field name="arch" type="xml">
|
|
<search string="FreeSWITCH Server Search">
|
|
<field name="name"
|
|
filter_domain="['|', ('name', 'ilike', self), ('ip_address', 'ilike', self)]"/>
|
|
</search>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_freeswitch_server_form" model="ir.ui.view">
|
|
<field name="name">freeswitch.server.form</field>
|
|
<field name="model">freeswitch.server</field>
|
|
<field name="arch" type="xml">
|
|
<form string="FreeSWITCH Servers">
|
|
<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="es" string="FreeSWITCH Event Socket">
|
|
<field name="ip_address" />
|
|
<field name="port" />
|
|
<field name="password" password="True" />
|
|
<button name="test_es_connection" type="object"
|
|
string="Test Connection to FreeSWITCH"
|
|
icon="gtk-network" colspan="2"/>
|
|
</group>
|
|
<group name="dialplan" string="Dialplan Parameters">
|
|
<field name="context" />
|
|
<field name="out_prefix" />
|
|
<field name="alert_info" />
|
|
<label for="wait_time"/>
|
|
<div>
|
|
<field name="wait_time" class="oe_inline"/>
|
|
<label string=" seconds" class="oe_inline"/>
|
|
</div>
|
|
</group>
|
|
</sheet>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="view_freeswitch_server_tree" model="ir.ui.view">
|
|
<field name="name">freeswitch.server.tree</field>
|
|
<field name="model">freeswitch.server</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="FreeSWITCH Servers">
|
|
<field name="name" />
|
|
<field name="ip_address" />
|
|
<field name="company_id"
|
|
groups="base.group_multi_company" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_freeswitch_server" model="ir.actions.act_window">
|
|
<field name="name">FreeSWITCH Servers</field>
|
|
<field name="res_model">freeswitch.server</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
|
|
<!-- Menu entry under Settings > Technical > Phone -->
|
|
<menuitem action="action_freeswitch_server" id="act_menu_fs_server" parent="base_phone.menu_config_phone" sequence="50"/>
|
|
|
|
|
|
</data>
|
|
</odoo>
|