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.

86 lines
3.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. FreeSWITCH Click2dial module for OpenERP
  4. Copyright (C) 2010-2014 Alexis de Lattre <alexis@via.ecp.fr>
  5. The licence is in the file __openerp__.py
  6. -->
  7. <openerp>
  8. <data>
  9. <!-- Search view for freeswitch.server -->
  10. <record id="view_freeswitch_server_search" model="ir.ui.view">
  11. <field name="name">freeswitch.server.search</field>
  12. <field name="model">freeswitch.server</field>
  13. <field name="arch" type="xml">
  14. <search string="FreeSWITCH Server Search">
  15. <field name="name"
  16. filter_domain="['|', ('name', 'ilike', self), ('ip_address', 'ilike', self)]"/>
  17. </search>
  18. </field>
  19. </record>
  20. <!-- Form view for freeswitch.server -->
  21. <record id="view_freeswitch_server_form" model="ir.ui.view">
  22. <field name="name">freeswitch.server.form</field>
  23. <field name="model">freeswitch.server</field>
  24. <field name="arch" type="xml">
  25. <form string="FreeSWITCH Servers" version="7.0">
  26. <sheet>
  27. <div class="oe_title">
  28. <label for="name" string="Server Name" class="oe_edit_only"/>
  29. <h1>
  30. <field name="name"/>
  31. </h1>
  32. </div>
  33. <group name="main">
  34. <field name="company_id"
  35. groups="base.group_multi_company"/>
  36. <field name="active" />
  37. </group>
  38. <group name="es" string="FreeSWITCH Event Socket">
  39. <field name="ip_address" />
  40. <field name="port" />
  41. <field name="password" password="True" />
  42. <button name="test_es_connection" type="object"
  43. string="Test Connection to FreeSWITCH"
  44. icon="gtk-network" colspan="2"/>
  45. </group>
  46. <group name="dialplan" string="Dialplan Parameters">
  47. <field name="context" />
  48. <field name="out_prefix" />
  49. <field name="alert_info" />
  50. <field name="wait_time" />
  51. </group>
  52. </sheet>
  53. </form>
  54. </field>
  55. </record>
  56. <!-- Tree view for freeswitch.server -->
  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. <!-- Action for freeswitch.server -->
  70. <record id="action_freeswitch_server" model="ir.actions.act_window">
  71. <field name="name">FreeSWITCH Servers</field>
  72. <field name="res_model">freeswitch.server</field>
  73. <field name="view_mode">tree,form</field>
  74. </record>
  75. <!-- Menu entry under Settings > Technical > Phone -->
  76. <menuitem action="action_freeswitch_server" id="act_menu_fs_server" parent="base_phone.menu_config_phone" sequence="50"/>
  77. </data>
  78. </openerp>