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.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. <record id="view_asterisk_server_search" model="ir.ui.view">
  8. <field name="name">asterisk.server.search</field>
  9. <field name="model">asterisk.server</field>
  10. <field name="arch" type="xml">
  11. <search string="Asterisk Server Search">
  12. <field name="name"
  13. filter_domain="['|', ('name', 'ilike', self), ('ip_address', 'ilike', self)]"/>
  14. </search>
  15. </field>
  16. </record>
  17. <record id="view_asterisk_server_form" model="ir.ui.view">
  18. <field name="name">asterisk.server.form</field>
  19. <field name="model">asterisk.server</field>
  20. <field name="arch" type="xml">
  21. <form string="Asterisk Servers">
  22. <sheet>
  23. <div class="oe_title">
  24. <label for="name" string="Server Name" class="oe_edit_only"/>
  25. <h1>
  26. <field name="name"/>
  27. </h1>
  28. </div>
  29. <group name="main">
  30. <field name="company_id"
  31. groups="base.group_multi_company"/>
  32. <field name="active" />
  33. </group>
  34. <group name="ami" string="Asterisk Manager Interface">
  35. <field name="ip_address" />
  36. <field name="port" />
  37. <field name="login" />
  38. <field name="password" password="True" />
  39. <button name="test_ami_connection" type="object"
  40. string="Test Connection to Asterisk"
  41. icon="gtk-network" colspan="2"/>
  42. </group>
  43. <group name="dialplan" string="Dialplan Parameters">
  44. <field name="context" />
  45. <field name="extension_priority" />
  46. <field name="out_prefix" />
  47. <field name="alert_info" />
  48. <label for="wait_time"/>
  49. <div>
  50. <field name="wait_time" class="oe_inline"/>
  51. <label string=" seconds" class="oe_inline"/>
  52. </div>
  53. </group>
  54. </sheet>
  55. </form>
  56. </field>
  57. </record>
  58. <record id="view_asterisk_server_tree" model="ir.ui.view">
  59. <field name="name">asterisk.server.tree</field>
  60. <field name="model">asterisk.server</field>
  61. <field name="arch" type="xml">
  62. <tree string="Asterisk Servers">
  63. <field name="name" />
  64. <field name="ip_address" />
  65. <field name="company_id"
  66. groups="base.group_multi_company" />
  67. </tree>
  68. </field>
  69. </record>
  70. <record id="action_asterisk_server" model="ir.actions.act_window">
  71. <field name="name">Asterisk Servers</field>
  72. <field name="res_model">asterisk.server</field>
  73. <field name="view_mode">tree,form</field>
  74. </record>
  75. <!-- Menu entry under Settings > Technical > Phone -->
  76. <menuitem action="action_asterisk_server" id="act_menu_ast_server" parent="base_phone.menu_config_phone" sequence="50"/>
  77. </odoo>