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.

89 lines
3.8 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="review_type"/>
  12. <field name="reviewer_id"/>
  13. <field name="reviewer_group_id"/>
  14. <field name="sequence"/>
  15. <field name="company_id" groups="base.group_multi_company"/>
  16. <field name="active"/>
  17. </tree>
  18. </field>
  19. </record>
  20. <record id="tier_definition_view_form" model="ir.ui.view">
  21. <field name="name">tier.definition.form</field>
  22. <field name="model">tier.definition</field>
  23. <field name="arch" type="xml">
  24. <form string="Tier Definition">
  25. <sheet>
  26. <div class="oe_button_box" name="button_box">
  27. <button name="toggle_active" type="object" class="oe_stat_button" icon="fa-archive">
  28. <field name="active" widget="boolean_button"/>
  29. </button>
  30. </div>
  31. <group>
  32. <group name="left">
  33. <field name="model_id" options="{'no_create': True}"/>
  34. <field name="review_type"/>
  35. <field name="reviewer_id"
  36. attrs="{'invisible': [('review_type', '!=', 'individual')]}"/>
  37. <field name="reviewer_group_id"
  38. attrs="{'invisible': [('review_type', '!=', 'group')]}"/>
  39. </group>
  40. <group name="right">
  41. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  42. <field name="sequence"/>
  43. </group>
  44. </group>
  45. <group col="4" name="bottom">
  46. <field name="python_code" colspan="4"/>
  47. </group>
  48. </sheet>
  49. </form>
  50. </field>
  51. </record>
  52. <record id="tier_definition_view_search" model="ir.ui.view">
  53. <field name="name">tier.definition.search</field>
  54. <field name="model">tier.definition</field>
  55. <field name="arch" type="xml">
  56. <search>
  57. <field name="model_id"/>
  58. <field name="reviewer_id"/>
  59. <field name="reviewer_group_id"/>
  60. <field name="active"/>
  61. <separator/>
  62. <filter string="All" name="all" domain="['|', ('active', '=', False), ('active', '=', True)]" />
  63. <group expand="0" string="Group By">
  64. <filter string="Model" name="model_id" domain="[]" context="{'group_by':'model_id'}"/>
  65. </group>
  66. </search>
  67. </field>
  68. </record>
  69. <record id="tier_definition_action" model="ir.actions.act_window">
  70. <field name="name">Tier Definition</field>
  71. <field name="type">ir.actions.act_window</field>
  72. <field name="res_model">tier.definition</field>
  73. <field name="view_type">form</field>
  74. <field name="view_mode">tree,form</field>
  75. <field name="context">{'search_default_all': 1}</field>
  76. </record>
  77. <menuitem id="menu_tier_confirmation"
  78. name="Tier Validations"
  79. parent="base.menu_custom"/>
  80. <menuitem id="menu_tier_definition"
  81. parent="menu_tier_confirmation"
  82. action="tier_definition_action"/>
  83. </odoo>