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.
|
|
<?xml version="1.0" encoding="utf-8"?> <!--
Asterisk Click2dial module for OpenERP Copyright (C) 2010-2013 Alexis de Lattre <alexis@via.ecp.fr> The licence is in the file __openerp__.py -->
<openerp> <data>
<!-- Inherit res.company to add tab for Asterisk servers --> <record id="view_asterisk_server_company_form" model="ir.ui.view"> <field name="name">asterisk.server.company</field> <field name="model">res.company</field> <field name="inherit_id" ref="base.view_company_form" /> <field name="arch" type="xml"> <notebook> <page position="inside" string="IPBX"> <field nolabel="1" name="asterisk_server_ids" /> </page> </notebook> </field> </record>
<!-- 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" /> <field name="ip_address" /> </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" invisible="not context.get('asterisk_server_main_view', False)" groups="base.group_multi_company"/> <field name="active" /> <field name="ip_address" /> <field name="port" /> <field name="login" /> <field name="password" password="True" /> <field name="context" /> <field name="extension_priority" /> <field name="out_prefix" /> <field name="national_prefix" /> <field name="international_prefix" /> <field name="country_prefix" /> <field name="alert_info" /> <field name="wait_time" /> <field name="number_of_digits_to_match_from_end" /> </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="company_id" invisible="not context.get('asterisk_server_main_view', False)"/> <field name="name" /> <field name="ip_address" /> <field name="port" /> <field name="country_prefix" /> </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_type">form</field> <field name="view_mode">tree,form</field> <field name="context">{'asterisk_server_main_view': True}</field> </record>
<!-- Menu entry under Settings > Technical --> <menuitem id="menu_asterisk_servers" name="Asterisk" parent="base.menu_custom"/> <menuitem action="action_asterisk_server" id="act_menu_ast_server" parent="menu_asterisk_servers" sequence="50"/>
</data> </openerp>
|