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.

108 lines
4.0 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2017 LasLabs Inc.
  4. License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl).
  5. -->
  6. <odoo>
  7. <record id="external_system_view_form" model="ir.ui.view">
  8. <field name="name">external.system.view.form</field>
  9. <field name="model">external.system</field>
  10. <field name="arch" type="xml">
  11. <form string="External System">
  12. <header>
  13. <button name="action_test_connection"
  14. type="object"
  15. string="Test Connection" />
  16. </header>
  17. <sheet>
  18. <group name="data">
  19. <group name="group_server_data">
  20. <field name="name" />
  21. <field name="company_ids" widget="many2many_tags" />
  22. <field name="remote_path" />
  23. <field name="ignore_fingerprint" />
  24. </group>
  25. <group name="group_connection_data">
  26. <field name="host" />
  27. <field name="port" />
  28. <field name="username" />
  29. <field name="password" widget="password" />
  30. <field name="system_type" />
  31. </group>
  32. </group>
  33. <notebook>
  34. <page string="Keys">
  35. <group>
  36. <group>
  37. <field name="private_key" />
  38. </group>
  39. <group>
  40. <field name="fingerprint" />
  41. </group>
  42. </group>
  43. </page>
  44. </notebook>
  45. </sheet>
  46. <footer />
  47. </form>
  48. </field>
  49. </record>
  50. <record id="external_system_view_tree" model="ir.ui.view">
  51. <field name="name">external.system.view.tree</field>
  52. <field name="model">external.system</field>
  53. <field name="arch" type="xml">
  54. <tree string="External Systems">
  55. <field name="name" />
  56. <field name="host" />
  57. <field name="port" />
  58. </tree>
  59. </field>
  60. </record>
  61. <record id="external_system_view_search" model="ir.ui.view">
  62. <field name="name">external.system.view.search</field>
  63. <field name="model">external.system</field>
  64. <field name="arch" type="xml">
  65. <search string="External Systems">
  66. <field name="name" />
  67. <field name="company_ids" />
  68. <field name="host" />
  69. <field name="port" />
  70. <field name="username" />
  71. <group expand="0" string="Group By">
  72. <filter string="Host"
  73. domain=""
  74. context="{'group_by': 'host'}" />
  75. <filter string="Port"
  76. domain=""
  77. context="{'group_by': 'port'}" />
  78. <filter string="Username"
  79. domain=""
  80. context="{'group_by': 'username'}" />
  81. </group>
  82. </search>
  83. </field>
  84. </record>
  85. <record id="external_system_action" model="ir.actions.act_window">
  86. <field name="name">External Systems</field>
  87. <field name="res_model">external.system</field>
  88. <field name="type">ir.actions.act_window</field>
  89. <field name="view_type">form</field>
  90. <field name="view_mode">tree,form</field>
  91. </record>
  92. <menuitem id="menu_external_system"
  93. name="External Systems"
  94. parent="base.menu_custom"
  95. action="external_system_action"
  96. sequence="50" />
  97. </odoo>