2
0

view_clash_tools.xml 4.3 KB

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