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.

94 lines
3.6 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. Copyright 2010-2018 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. <separator/>
  15. <filter string="Archived" name="inactive" domain="[('active', '=', False)]"/>
  16. </search>
  17. </field>
  18. </record>
  19. <record id="view_asterisk_server_form" model="ir.ui.view">
  20. <field name="name">asterisk.server.form</field>
  21. <field name="model">asterisk.server</field>
  22. <field name="arch" type="xml">
  23. <form string="Asterisk Servers">
  24. <sheet>
  25. <div class="oe_button_box" name="button_box">
  26. <button name="toggle_active" type="object"
  27. class="oe_stat_button" icon="fa-archive">
  28. <field name="active" widget="boolean_button"
  29. options='{"terminology": "archive"}'/>
  30. </button>
  31. </div>
  32. <div class="oe_title">
  33. <label for="name" string="Server Name" class="oe_edit_only"/>
  34. <h1>
  35. <field name="name"/>
  36. </h1>
  37. </div>
  38. <group name="main">
  39. <field name="company_id"
  40. groups="base.group_multi_company"/>
  41. </group>
  42. <group name="ami" string="Asterisk Manager Interface">
  43. <field name="ip_address" />
  44. <field name="port" />
  45. <field name="login" />
  46. <field name="password" password="True" />
  47. <button name="test_ami_connection" type="object"
  48. string="Test Connection to Asterisk"
  49. class="btn-default" colspan="2"/>
  50. </group>
  51. <group name="dialplan" string="Dialplan Parameters">
  52. <field name="context" />
  53. <field name="extension_priority" />
  54. <field name="out_prefix" />
  55. <field name="alert_info" />
  56. <label for="wait_time"/>
  57. <div>
  58. <field name="wait_time" class="oe_inline"/>
  59. <label string=" seconds" class="oe_inline" for="seconds"/>
  60. </div>
  61. </group>
  62. </sheet>
  63. </form>
  64. </field>
  65. </record>
  66. <record id="view_asterisk_server_tree" model="ir.ui.view">
  67. <field name="name">asterisk.server.tree</field>
  68. <field name="model">asterisk.server</field>
  69. <field name="arch" type="xml">
  70. <tree string="Asterisk Servers">
  71. <field name="name" />
  72. <field name="ip_address" />
  73. <field name="company_id"
  74. groups="base.group_multi_company" />
  75. </tree>
  76. </field>
  77. </record>
  78. <record id="action_asterisk_server" model="ir.actions.act_window">
  79. <field name="name">Asterisk Servers</field>
  80. <field name="res_model">asterisk.server</field>
  81. <field name="view_mode">tree,form</field>
  82. </record>
  83. <!-- Menu entry under Settings > Technical > Phone -->
  84. <menuitem action="action_asterisk_server" id="act_menu_ast_server" parent="base_phone.menu_config_phone" sequence="50"/>
  85. </odoo>