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.

126 lines
5.0 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. </form>
  56. </field>
  57. </record>
  58. <!-- Agreement Service Profile Kanban View -->
  59. <record id="agreement_serviceprofile_kanban" model="ir.ui.view">
  60. <field name="name">Agreement Service Profile Kanban</field>
  61. <field name="model">agreement.serviceprofile</field>
  62. <field name="arch" type="xml">
  63. <kanban default_group_by="stage_id">
  64. <templates>
  65. <t t-name="kanban-box">
  66. <div class="oe_kanban_content">
  67. <div>
  68. <strong class="o_kanban_record_title">
  69. <field name="name"/>
  70. </strong>
  71. </div>
  72. <div class="oe_clear"/>
  73. </div>
  74. </t>
  75. </templates>
  76. </kanban>
  77. </field>
  78. </record>
  79. <!-- Agreement Service Profile Search View -->
  80. <record id="agreement_serviceprofile_search" model="ir.ui.view">
  81. <field name="name">Agreement Service Profile Search</field>
  82. <field name="model">agreement.serviceprofile</field>
  83. <field name="arch" type="xml">
  84. <search>
  85. <filter string="Agreement" name="group_agreement"
  86. icon="terp-partner"
  87. context="{'group_by': 'agreement_id'}"/>
  88. <filter string="Product" name="group_product"
  89. icon="terp-product"
  90. context="{'group_by': 'product_id'}"/>
  91. </search>
  92. </field>
  93. </record>
  94. <!-- Actions opening views on models -->
  95. <record id="agreement_serviceprofile_action" model="ir.actions.act_window">
  96. <field name="name">Service Profiles</field>
  97. <field name="res_model">agreement.serviceprofile</field>
  98. <field name="view_mode">tree,form</field>
  99. </record>
  100. <record id="agreement_serviceprofile_dashboard" model="ir.actions.act_window">
  101. <field name="name">Service Profiles</field>
  102. <field name="res_model">agreement.serviceprofile</field>
  103. <field name="view_mode">kanban,tree,form</field>
  104. </record>
  105. <menuitem
  106. name="Service Profiles"
  107. id="agreement_serviceprofiles"
  108. parent="agreement_legal.agreement_masterdata"
  109. sequence="50"
  110. action="agreement_serviceprofile_action"/>
  111. <menuitem
  112. name="Service Profiles"
  113. id="dashboard_serviceprofiles"
  114. parent="agreement_legal.agreement_dashboard"
  115. sequence="20"
  116. action="agreement_serviceprofile_dashboard"/>
  117. </odoo>