view_clash_tools.xml 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_clash_tools_tree" model="ir.ui.view">
  4. <field name="name">clash.tools.tree</field>
  5. <field name="model">clash.tools</field>
  6. <field name="arch" type="xml">
  7. <list string="Clash Tools">
  8. <header>
  9. <button name="btn_get_all_node" type="object" string="Get All Proxy" class="oe_highlight"/>
  10. <button name="btn_check_all_node" type="object" string="Check All Proxy" class="oe_highlight"/>
  11. <button name="btn_select_node" type="object" string="Select Node" class="oe_highlight"/>
  12. </header>
  13. <field name="name"/>
  14. <field name="localhost_ip"/>
  15. <field name="api_ip"/>
  16. <field name="total_nodes"/>
  17. <field name="current_node"/>
  18. <field name="skip_node"/>
  19. <field name="use_type"/>
  20. </list>
  21. </field>
  22. </record>
  23. <record id="view_clash_tools_form" model="ir.ui.view">
  24. <field name="name">clash.tools.form</field>
  25. <field name="model">clash.tools</field>
  26. <field name="arch" type="xml">
  27. <form string="Clash Tools" create="0">
  28. <header>
  29. <button name="btn_get_all_node" type="object" string="Get All Node" class="oe_highlight"/>
  30. <button name="btn_check_all_node" type="object" string="Check All Node" class="oe_highlight"/>
  31. <button name="btn_select_node" type="object" string="Select Node" class="oe_highlight"/>
  32. </header>
  33. <sheet>
  34. <group>
  35. <group>
  36. <field name="name"/>
  37. <field name="total_nodes" readonly="True"/>
  38. <field name="current_node" readonly="True"/>
  39. <field name="use_type" widget="selection"/>
  40. </group>
  41. <group>
  42. <field name="localhost_ip"/>
  43. <field name="api_ip"/>
  44. <field name="skip_node"/>
  45. </group>
  46. </group>
  47. <notebook>
  48. <page string="Lines">
  49. <field name="line_ids">
  50. <list string="Lines" editable="bottom" create="0" edit="0" delete="0" limit="80">
  51. <button name="btn_use_this_node" type="object" string="Use"
  52. class="oe_highlight"/>
  53. <button name="check_single_node" type="object" string="Check"
  54. class="oe_highlight"/>
  55. <field name="name"/>
  56. <field name="delay"/>
  57. <field name="mean_delay"/>
  58. <field name="node_state"/>
  59. </list>
  60. </field>
  61. </page>
  62. </notebook>
  63. </sheet>
  64. </form>
  65. </field>
  66. </record>
  67. <record id="view_clash_tools_line_tree" model="ir.ui.view">
  68. <field name="name">clash.tools.line.tree</field>
  69. <field name="model">clash.tools.line</field>
  70. <field name="arch" type="xml">
  71. <list string="Clash Tools Line">
  72. <field name="name"/>
  73. <field name="delay"/>
  74. <field name="mean_delay"/>
  75. </list>
  76. </field>
  77. </record>
  78. <record id="action_clash_tools" model="ir.actions.act_window">
  79. <field name="name">Clash Tools</field>
  80. <field name="res_model">clash.tools</field>
  81. <field name="view_mode">list,form</field>
  82. <field name="context">{'group_by': 'use_type'}</field>
  83. </record>
  84. <menuitem id="menu_clash_tools" name="Clash Tools" parent="menu_home_page" sequence="9"/>
  85. <menuitem id="menu_clash_tools_clash_tools" name="Clash Tools" parent="menu_clash_tools" action="action_clash_tools"
  86. sequence="1"/>
  87. </odoo>