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.

106 lines
4.6 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- Copyright 2017 Eficent Business and IT Consulting Services S.L.
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <odoo>
  5. <record id="tier_definition_view_tree" model="ir.ui.view">
  6. <field name="name">tier.definition.tree</field>
  7. <field name="model">tier.definition</field>
  8. <field name="arch" type="xml">
  9. <tree string="Tier Definition">
  10. <field name="model_id"/>
  11. <field name="name"/>
  12. <field name="review_type"/>
  13. <field name="reviewer_id"/>
  14. <field name="reviewer_group_id"/>
  15. <field name="sequence"/>
  16. <field name="company_id" groups="base.group_multi_company"/>
  17. <field name="active"/>
  18. </tree>
  19. </field>
  20. </record>
  21. <record id="tier_definition_view_form" model="ir.ui.view">
  22. <field name="name">tier.definition.form</field>
  23. <field name="model">tier.definition</field>
  24. <field name="arch" type="xml">
  25. <form string="Tier Definition">
  26. <sheet>
  27. <div class="oe_button_box" name="button_box">
  28. <button name="toggle_active" type="object"
  29. class="oe_stat_button" icon="fa-archive">
  30. <field name="active" widget="boolean_button"/>
  31. </button>
  32. </div>
  33. <div class="oe_title">
  34. <span class="oe_edit_only">Name</span>
  35. <h1>
  36. <field name="name" required="1"
  37. placeholder="e.g. Tier Validation for..."/>
  38. </h1>
  39. </div>
  40. <group>
  41. <group name="left">
  42. <field name="model_id"
  43. options="{'no_create': True}"/>
  44. <field name="model" invisible="1"/>
  45. <field name="review_type"/>
  46. <field name="reviewer_id"
  47. attrs="{'invisible': [('review_type', '!=', 'individual')]}"/>
  48. <field name="reviewer_group_id"
  49. attrs="{'invisible': [('review_type', '!=', 'group')]}"/>
  50. </group>
  51. <group name="right">
  52. <field name="company_id"
  53. groups="base.group_multi_company"
  54. options="{'no_create': True}"/>
  55. <field name="sequence"/>
  56. </group>
  57. </group>
  58. <group name="bottom">
  59. <field name="definition_type"/>
  60. <field name="definition_domain" widget="domain" options="{'model': 'model'}"
  61. attrs="{'invisible': [('definition_type', '!=', 'domain')]}"/>
  62. </group>
  63. </sheet>
  64. </form>
  65. </field>
  66. </record>
  67. <record id="tier_definition_view_search" model="ir.ui.view">
  68. <field name="name">tier.definition.search</field>
  69. <field name="model">tier.definition</field>
  70. <field name="arch" type="xml">
  71. <search>
  72. <field name="model_id"/>
  73. <field name="reviewer_id"/>
  74. <field name="reviewer_group_id"/>
  75. <field name="active"/>
  76. <separator/>
  77. <filter string="All" name="all"
  78. domain="['|', ('active', '=', False), ('active', '=', True)]"/>
  79. <group expand="0" string="Group By">
  80. <filter string="Model" name="model_id" domain="[]"
  81. context="{'group_by':'model_id'}"/>
  82. </group>
  83. </search>
  84. </field>
  85. </record>
  86. <record id="tier_definition_action" model="ir.actions.act_window">
  87. <field name="name">Tier Definition</field>
  88. <field name="type">ir.actions.act_window</field>
  89. <field name="res_model">tier.definition</field>
  90. <field name="view_type">form</field>
  91. <field name="view_mode">tree,form</field>
  92. <field name="context">{'search_default_all': 1}</field>
  93. </record>
  94. <menuitem id="menu_tier_confirmation"
  95. name="Tier Validations"
  96. parent="base.menu_custom"/>
  97. <menuitem id="menu_tier_definition"
  98. parent="menu_tier_confirmation"
  99. action="tier_definition_action"/>
  100. </odoo>