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.

65 lines
2.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_asterisk_server_company_form" model="ir.ui.view">
  5. <field name="name">asterisk.server.company</field>
  6. <field name="model">res.company</field>
  7. <field name="inherit_id" ref="base.view_company_form" />
  8. <field name="arch" type="xml">
  9. <notebook>
  10. <page position="inside" string="IPBX">
  11. <separator colspan="4" string="Asterisk servers for click2dial" />
  12. <field nolabel="1" name="asterisk_server_ids" />
  13. </page>
  14. </notebook>
  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="type">form</field>
  21. <field name="arch" type="xml">
  22. <form string="Asterisk servers">
  23. <field name="name" select="1" />
  24. <field name="ip_address" select="1" />
  25. <field name="port" select="2" />
  26. <field name="login" select="2" />
  27. <field name="password" password="True" />
  28. <field name="context" />
  29. <field name="extension_priority" />
  30. <field name="out_prefix" />
  31. <field name="national_prefix" />
  32. <field name="international_prefix" />
  33. <field name="country_prefix" select="1" />
  34. <field name="national_format_allowed" />
  35. <field name="alert_info" />
  36. <field name="wait_time" />
  37. </form>
  38. </field>
  39. </record>
  40. <record id="view_asterisk_server_tree" model="ir.ui.view">
  41. <field name="name">asterisk.server.tree</field>
  42. <field name="model">asterisk.server</field>
  43. <field name="type">tree</field>
  44. <field name="arch" type="xml">
  45. <tree string="Asterisk servers">
  46. <field name="name" />
  47. <field name="ip_address" />
  48. <field name="port" />
  49. <field name="country_prefix" />
  50. </tree>
  51. </field>
  52. </record>
  53. <record id="action_asterisk_server" model="ir.actions.act_window">
  54. <field name="name">Asterisk Servers</field>
  55. <field name="res_model">asterisk.server</field>
  56. <field name="view_type">form</field>
  57. <field name="view_mode">tree,form</field>
  58. </record>
  59. </data>
  60. </openerp>