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.

87 lines
3.2 KiB

12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
12 years ago
  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_asterisk_server_search" model="ir.ui.view">
  9. <field name="name">asterisk.server.search</field>
  10. <field name="model">asterisk.server</field>
  11. <field name="arch" type="xml">
  12. <search string="Asterisk 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_asterisk_server_form" model="ir.ui.view">
  19. <field name="name">asterisk.server.form</field>
  20. <field name="model">asterisk.server</field>
  21. <field name="arch" type="xml">
  22. <form string="Asterisk 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="ami" string="Asterisk Manager Interface">
  36. <field name="ip_address" />
  37. <field name="port" />
  38. <field name="login" />
  39. <field name="password" password="True" />
  40. <button name="test_ami_connection" type="object"
  41. string="Test Connection to Asterisk"
  42. icon="gtk-network" colspan="2"/>
  43. </group>
  44. <group name="dialplan" string="Dialplan Parameters">
  45. <field name="context" />
  46. <field name="extension_priority" />
  47. <field name="out_prefix" />
  48. <field name="alert_info" />
  49. <label for="wait_time"/>
  50. <div>
  51. <field name="wait_time" class="oe_inline"/>
  52. <label string=" seconds" class="oe_inline"/>
  53. </div>
  54. </group>
  55. </sheet>
  56. </form>
  57. </field>
  58. </record>
  59. <record id="view_asterisk_server_tree" model="ir.ui.view">
  60. <field name="name">asterisk.server.tree</field>
  61. <field name="model">asterisk.server</field>
  62. <field name="arch" type="xml">
  63. <tree string="Asterisk Servers">
  64. <field name="name" />
  65. <field name="ip_address" />
  66. <field name="company_id"
  67. groups="base.group_multi_company" />
  68. </tree>
  69. </field>
  70. </record>
  71. <record id="action_asterisk_server" model="ir.actions.act_window">
  72. <field name="name">Asterisk Servers</field>
  73. <field name="res_model">asterisk.server</field>
  74. <field name="view_mode">tree,form</field>
  75. </record>
  76. <!-- Menu entry under Settings > Technical > Phone -->
  77. <menuitem action="action_asterisk_server" id="act_menu_ast_server" parent="base_phone.menu_config_phone" sequence="50"/>
  78. </data>
  79. </odoo>