tic_remote_support.xml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="partner_view_remote_support_bool" model="ir.ui.view">
  5. <field name="name">res.partner.remote.support.bool</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <xpath expr="//field[@name='website']" position="after">
  10. <field name="supportbool"/>
  11. </xpath>
  12. </field>
  13. </record>
  14. <record id="partner_view_remote_support" model="ir.ui.view">
  15. <field name="name">res.partner.remote.support</field>
  16. <field name="model">res.partner</field>
  17. <field name="inherit_id" ref="base.view_partner_form"/>
  18. <field name="arch" type="xml">
  19. <xpath expr="//page[@name='internal_notes']" position="after">
  20. <page name="remotesupport" string="Remote Support" attrs="{'invisible': [('supportbool','=', False)]}">
  21. <field name="remotes_ids" nolabel="1">
  22. <tree>
  23. <field name="name"/>
  24. <field name="remote_type" widget="selection"/>
  25. <field name="pc_type" widget="selection"/>
  26. <field name="remote_id"/>
  27. <field name="remote_ip"/>
  28. <field name="remote_port"/>
  29. <field name="remote_username"/>
  30. <field name="remote_password"/>
  31. <field name="remote_notes"/>
  32. </tree>
  33. </field>
  34. </page>
  35. </xpath>
  36. </field>
  37. </record>
  38. <record id="tic_remote_support_view_tree" model="ir.ui.view">
  39. <field name="name">tic.remote.support.view.tree</field>
  40. <field name="model">tic.remote.support.service</field>
  41. <field name="arch" type="xml">
  42. <tree string="Remote Support">
  43. <field name="name"/>
  44. <field name="remote_type"/>
  45. <field name="pc_type"/>
  46. <field name="remote_id"/>
  47. <field name="remote_ip"/>
  48. <field name="remote_port"/>
  49. <field name="remote_username"/>
  50. <field name="remote_password"/>
  51. <field name="remote_notes"/>
  52. </tree>
  53. </field>
  54. </record>
  55. <record id="tic_remote_support_view_form" model="ir.ui.view">
  56. <field name="name">tic.remote.support.view.form</field>
  57. <field name="model">tic.remote.support.service</field>
  58. <field name="arch" type="xml">
  59. <form string="Remote Support">
  60. <sheet>
  61. <group>
  62. <div class="oe_title oe_left">
  63. <div class="oe_edit_only">
  64. <label for="name"/>
  65. </div>
  66. <h1>
  67. <field name="name" default_focus="1" placeholder="Name"/>
  68. </h1>
  69. </div>
  70. </group>
  71. <group colspan="4" col="4">
  72. <field name="remote_type" widget="selection"/>
  73. <field name="pc_type" widget="selection"/>
  74. <field name="remote_ip" placeholder="127.0.0.1"/>
  75. <field name="remote_port" placeholder="3386"/>
  76. <field name="remote_username"/>
  77. <field name="remote_password"/>
  78. <field name="remote_id"/>
  79. <field name="remote_serial"/>
  80. </group>
  81. <group>
  82. <field name="remote_notes"/>
  83. </group>
  84. </sheet>
  85. </form>
  86. </field>
  87. </record>
  88. </data>
  89. </openerp>