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.

130 lines
5.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Agreement Service Profile List View-->
  4. <record id="agreement_serviceprofile_tree" model="ir.ui.view">
  5. <field name="name">Agreement Service Profile Tree</field>
  6. <field name="model">agreement.serviceprofile</field>
  7. <field name="arch" type="xml">
  8. <tree string="Service Profiles" default_order='agreement_id'>
  9. <field name="name"/>
  10. <field name="agreement_id"/>
  11. <field name="partner_id"/>
  12. <field name="product_id"/>
  13. <field name="active" invisible="1"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <!-- Agreement Service Profile Form View -->
  18. <record id="agreement_serviceprofile_form" model="ir.ui.view">
  19. <field name="name">Agreement Service Profile Form</field>
  20. <field name="model">agreement.serviceprofile</field>
  21. <field name="arch" type="xml">
  22. <form string="Service Profile">
  23. <header>
  24. <field name="stage_id" widget="statusbar"
  25. clickable="True"
  26. options="{'fold_field': 'fold'}"
  27. domain="[('stage_type', '=', 'serviceprofile')]"/>
  28. </header>
  29. <sheet>
  30. <div class="oe_button_box" name="button_box">
  31. <button name="toggle_active" type="object"
  32. class="oe_stat_button" icon="fa-archive">
  33. <field name="active" widget="boolean_button"
  34. options="{'terminology': 'archive'}"/>
  35. </button>
  36. </div>
  37. <div class="oe_title">
  38. <label for="name" class="oe_edit_only"/>
  39. <h1>
  40. <field name="name"/>
  41. </h1>
  42. </div>
  43. <group>
  44. <group>
  45. <field name="agreement_id"/>
  46. </group>
  47. <group>
  48. <field name="product_id"/>
  49. </group>
  50. </group>
  51. <group string="Notes">
  52. <field name="notes" nolabel="1" widget="html"/>
  53. </group>
  54. </sheet>
  55. <div class="oe_chatter">
  56. <field name="message_follower_ids" widget="mail_followers"/>
  57. <field name="message_ids" widget="mail_thread"/>
  58. </div>
  59. </form>
  60. </field>
  61. </record>
  62. <!-- Agreement Service Profile Kanban View -->
  63. <record id="agreement_serviceprofile_kanban" model="ir.ui.view">
  64. <field name="name">Agreement Service Profile Kanban</field>
  65. <field name="model">agreement.serviceprofile</field>
  66. <field name="arch" type="xml">
  67. <kanban default_group_by="stage_id">
  68. <templates>
  69. <t t-name="kanban-box">
  70. <div class="oe_kanban_content">
  71. <div>
  72. <strong class="o_kanban_record_title">
  73. <field name="name"/>
  74. </strong>
  75. </div>
  76. <div class="oe_clear"/>
  77. </div>
  78. </t>
  79. </templates>
  80. </kanban>
  81. </field>
  82. </record>
  83. <!-- Agreement Service Profile Search View -->
  84. <record id="agreement_serviceprofile_search" model="ir.ui.view">
  85. <field name="name">Agreement Service Profile Search</field>
  86. <field name="model">agreement.serviceprofile</field>
  87. <field name="arch" type="xml">
  88. <search>
  89. <filter string="Agreement" name="group_agreement"
  90. icon="terp-partner"
  91. context="{'group_by': 'agreement_id'}"/>
  92. <filter string="Product" name="group_product"
  93. icon="terp-product"
  94. context="{'group_by': 'product_id'}"/>
  95. </search>
  96. </field>
  97. </record>
  98. <!-- Actions opening views on models -->
  99. <record id="agreement_serviceprofile_action" model="ir.actions.act_window">
  100. <field name="name">Service Profiles</field>
  101. <field name="res_model">agreement.serviceprofile</field>
  102. <field name="view_mode">tree,form</field>
  103. </record>
  104. <record id="agreement_serviceprofile_dashboard" model="ir.actions.act_window">
  105. <field name="name">Service Profiles</field>
  106. <field name="res_model">agreement.serviceprofile</field>
  107. <field name="view_mode">kanban,tree,form</field>
  108. </record>
  109. <menuitem
  110. name="Service Profiles"
  111. id="agreement_serviceprofiles"
  112. parent="agreement_legal.agreement_masterdata"
  113. sequence="50"
  114. action="agreement_serviceprofile_action"/>
  115. <menuitem
  116. name="Service Profiles"
  117. id="dashboard_serviceprofiles"
  118. parent="agreement_legal.agreement_dashboard"
  119. sequence="20"
  120. action="agreement_serviceprofile_dashboard"/>
  121. </odoo>