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.

63 lines
2.6 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. <div class="oe_button_box" name="button_box">
  13. <button name="show_checks" type="object"
  14. class="oe_stat_button"
  15. icon="fa-check-square">
  16. <field name="check_count" widget="statinfo"
  17. string="Checks"/>
  18. <field name="check_ids" invisible="1"/>
  19. </button>
  20. </div>
  21. <group string="NSCA Server">
  22. <field name="name" style="width: 30%;"/>
  23. <field name="port"/>
  24. <field name="password" password="1"/>
  25. <field name="encryption_method"/>
  26. <field name="config_file_path"/>
  27. </group>
  28. <group string="Node identity">
  29. <field name="node_hostname"/>
  30. </group>
  31. </sheet>
  32. </form>
  33. </field>
  34. </record>
  35. <record id="view_nsca_server_tree" model="ir.ui.view">
  36. <field name="name">nsca.server.tree</field>
  37. <field name="model">nsca.server</field>
  38. <field name="arch" type="xml">
  39. <tree string="NSCA Servers">
  40. <field name="name"/>
  41. <field name="port"/>
  42. <field name="config_file_path"/>
  43. </tree>
  44. </field>
  45. </record>
  46. <record model="ir.actions.act_window" id="action_nsca_server_tree">
  47. <field name="name">Servers</field>
  48. <field name="type">ir.actions.act_window</field>
  49. <field name="res_model">nsca.server</field>
  50. <field name="view_type">form</field>
  51. <field name="view_id" ref="view_nsca_server_tree"/>
  52. </record>
  53. <menuitem id="menu_action_nsca_server_tree"
  54. parent="menu_nsca_client"
  55. action="action_nsca_server_tree"/>
  56. </data>
  57. </odoo>