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.

88 lines
3.2 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="alert_info" />
  52. <field name="wait_time" />
  53. </group>
  54. </sheet>
  55. </form>
  56. </field>
  57. </record>
  58. <!-- Tree view for asterisk.server -->
  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. <!-- Action for asterisk.server -->
  72. <record id="action_asterisk_server" model="ir.actions.act_window">
  73. <field name="name">Asterisk Servers</field>
  74. <field name="res_model">asterisk.server</field>
  75. <field name="view_mode">tree,form</field>
  76. </record>
  77. <!-- Menu entry under Settings > Technical > Phone -->
  78. <menuitem action="action_asterisk_server" id="act_menu_ast_server" parent="base_phone.menu_config_phone" sequence="50"/>
  79. </data>
  80. </openerp>