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.

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