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.

57 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- © 2015 ABF OSIELL <http://osiell.com>
  3. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->
  4. <odoo>
  5. <data>
  6. <record id="view_nsca_server_form" model="ir.ui.view">
  7. <field name="name">nsca.server.form</field>
  8. <field name="model">nsca.server</field>
  9. <field name="arch" type="xml">
  10. <form string="NSCA Server">
  11. <sheet>
  12. <group string="NSCA Server">
  13. <field name="name" style="width: 30%;"/>
  14. <field name="port"/>
  15. <field name="password" password="1"/>
  16. <field name="encryption_method"/>
  17. <field name="config_file_path"/>
  18. </group>
  19. <group string="Node identity">
  20. <field name="node_hostname"/>
  21. </group>
  22. <group string="Checks">
  23. <field name="check_ids" nolabel="1"/>
  24. </group>
  25. </sheet>
  26. </form>
  27. </field>
  28. </record>
  29. <record id="view_nsca_server_tree" model="ir.ui.view">
  30. <field name="name">nsca.server.tree</field>
  31. <field name="model">nsca.server</field>
  32. <field name="arch" type="xml">
  33. <tree string="NSCA Servers">
  34. <field name="name"/>
  35. <field name="port"/>
  36. <field name="config_file_path"/>
  37. </tree>
  38. </field>
  39. </record>
  40. <record model="ir.actions.act_window" id="action_nsca_server_tree">
  41. <field name="name">Servers</field>
  42. <field name="type">ir.actions.act_window</field>
  43. <field name="res_model">nsca.server</field>
  44. <field name="view_type">form</field>
  45. <field name="view_id" ref="view_nsca_server_tree"/>
  46. </record>
  47. <menuitem id="menu_action_nsca_server_tree"
  48. parent="menu_nsca_client"
  49. action="action_nsca_server_tree"/>
  50. </data>
  51. </odoo>