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.

92 lines
3.4 KiB

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. Asterisk 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 asterisk.server -->
  10. <record id="view_asterisk_server_search" model="ir.ui.view">
  11. <field name="name">asterisk.server.search</field>
  12. <field name="model">asterisk.server</field>
  13. <field name="arch" type="xml">
  14. <search string="Asterisk 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 asterisk.server -->
  21. <record id="view_asterisk_server_form" model="ir.ui.view">
  22. <field name="name">asterisk.server.form</field>
  23. <field name="model">asterisk.server</field>
  24. <field name="arch" type="xml">
  25. <form string="Asterisk 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="ami" string="Asterisk Manager Interface">
  39. <field name="ip_address" />
  40. <field name="port" />
  41. <field name="login" />
  42. <field name="password" password="True" />
  43. <button name="test_ami_connection" type="object"
  44. string="Test Connection to Asterisk"
  45. icon="gtk-network" colspan="2"/>
  46. </group>
  47. <group name="dialplan" string="Dialplan Parameters">
  48. <field name="context" />
  49. <field name="extension_priority" />
  50. <field name="out_prefix" />
  51. <field name="national_prefix" />
  52. <field name="international_prefix" />
  53. <field name="country_prefix" />
  54. <field name="alert_info" />
  55. <field name="wait_time" />
  56. </group>
  57. </sheet>
  58. </form>
  59. </field>
  60. </record>
  61. <!-- Tree view for asterisk.server -->
  62. <record id="view_asterisk_server_tree" model="ir.ui.view">
  63. <field name="name">asterisk.server.tree</field>
  64. <field name="model">asterisk.server</field>
  65. <field name="arch" type="xml">
  66. <tree string="Asterisk Servers">
  67. <field name="name" />
  68. <field name="ip_address" />
  69. <field name="company_id"
  70. groups="base.group_multi_company" />
  71. <field name="country_prefix" />
  72. </tree>
  73. </field>
  74. </record>
  75. <!-- Action for asterisk.server -->
  76. <record id="action_asterisk_server" model="ir.actions.act_window">
  77. <field name="name">Asterisk Servers</field>
  78. <field name="res_model">asterisk.server</field>
  79. <field name="view_mode">tree,form</field>
  80. </record>
  81. <!-- Menu entry under Settings > Technical > Phone -->
  82. <menuitem action="action_asterisk_server" id="act_menu_ast_server" parent="base_phone.menu_config_phone" sequence="50"/>
  83. </data>
  84. </openerp>