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.

61 lines
2.5 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="sequence"/>
  12. <field name="company_id" groups="base.group_multi_company"/>
  13. <field name="active"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="tier_definition_view_form" model="ir.ui.view">
  18. <field name="name">tier.definition.form</field>
  19. <field name="model">tier.definition</field>
  20. <field name="arch" type="xml">
  21. <form string="Tier Definition">
  22. <group>
  23. <group name="left">
  24. <field name="model_id" options="{'no_create': True}"/>
  25. <field name="review_type"/>
  26. <field name="reviewer_id"
  27. attrs="{'invisible': [('review_type', '!=', 'individual')]}"/>
  28. <field name="reviewer_group_id"
  29. attrs="{'invisible': [('review_type', '!=', 'group')]}"/>
  30. </group>
  31. <group name="right">
  32. <field name="company_id" groups="base.group_multi_company" options="{'no_create': True}"/>
  33. <field name="sequence"/>
  34. <field name="active"/>
  35. </group>
  36. </group>
  37. <group col="4" name="bottom">
  38. <field name="python_code"/>
  39. </group>
  40. </form>
  41. </field>
  42. </record>
  43. <record id="tier_definition_action" model="ir.actions.act_window">
  44. <field name="name">Tier Definition</field>
  45. <field name="type">ir.actions.act_window</field>
  46. <field name="res_model">tier.definition</field>
  47. <field name="view_type">form</field>
  48. <field name="view_mode">tree,form</field>
  49. </record>
  50. <menuitem id="menu_tier_confirmation"
  51. name="Tier Validations"
  52. parent="base.menu_custom"/>
  53. <menuitem id="menu_tier_definition"
  54. parent="menu_tier_confirmation"
  55. action="tier_definition_action"/>
  56. </odoo>