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

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. © 2010-2016 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <odoo>
  7. <data>
  8. <record id="view_freeswitch_server_search" model="ir.ui.view">
  9. <field name="name">freeswitch.server.search</field>
  10. <field name="model">freeswitch.server</field>
  11. <field name="arch" type="xml">
  12. <search string="FreeSWITCH Server Search">
  13. <field name="name"
  14. filter_domain="['|', ('name', 'ilike', self), ('ip_address', 'ilike', self)]"/>
  15. </search>
  16. </field>
  17. </record>
  18. <record id="view_freeswitch_server_form" model="ir.ui.view">
  19. <field name="name">freeswitch.server.form</field>
  20. <field name="model">freeswitch.server</field>
  21. <field name="arch" type="xml">
  22. <form string="FreeSWITCH Servers">
  23. <sheet>
  24. <div class="oe_title">
  25. <label for="name" string="Server Name" class="oe_edit_only"/>
  26. <h1>
  27. <field name="name"/>
  28. </h1>
  29. </div>
  30. <group name="main">
  31. <field name="company_id"
  32. groups="base.group_multi_company"/>
  33. <field name="active" />
  34. </group>
  35. <group name="es" string="FreeSWITCH Event Socket">
  36. <field name="ip_address" />
  37. <field name="port" />
  38. <field name="password" password="True" />
  39. <button name="test_es_connection" type="object"
  40. string="Test Connection to FreeSWITCH"
  41. icon="gtk-network" colspan="2"/>
  42. </group>
  43. <group name="dialplan" string="Dialplan Parameters">
  44. <field name="context" />
  45. <field name="out_prefix" />
  46. <field name="alert_info" />
  47. <label for="wait_time"/>
  48. <div>
  49. <field name="wait_time" class="oe_inline"/>
  50. <label string=" seconds" class="oe_inline"/>
  51. </div>
  52. </group>
  53. </sheet>
  54. </form>
  55. </field>
  56. </record>
  57. <record id="view_freeswitch_server_tree" model="ir.ui.view">
  58. <field name="name">freeswitch.server.tree</field>
  59. <field name="model">freeswitch.server</field>
  60. <field name="arch" type="xml">
  61. <tree string="FreeSWITCH Servers">
  62. <field name="name" />
  63. <field name="ip_address" />
  64. <field name="company_id"
  65. groups="base.group_multi_company" />
  66. </tree>
  67. </field>
  68. </record>
  69. <record id="action_freeswitch_server" model="ir.actions.act_window">
  70. <field name="name">FreeSWITCH Servers</field>
  71. <field name="res_model">freeswitch.server</field>
  72. <field name="view_mode">tree,form</field>
  73. </record>
  74. <!-- Menu entry under Settings > Technical > Phone -->
  75. <menuitem action="action_freeswitch_server" id="act_menu_fs_server" parent="base_phone.menu_config_phone" sequence="50"/>
  76. </data>
  77. </odoo>