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.

73 lines
2.9 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 2014 ABF OSIELL <http://osiell.com>
  3. License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl).
  4. -->
  5. <odoo>
  6. <record id="view_res_users_role_form" model="ir.ui.view">
  7. <field name="name">res.users.role.form</field>
  8. <field name="model">res.users.role</field>
  9. <field name="arch" type="xml">
  10. <form>
  11. <sheet>
  12. <group>
  13. <field name="name" />
  14. <field name="group_id" required="0" readonly="1" />
  15. </group>
  16. <notebook>
  17. <page string="Groups">
  18. <field name="implied_ids" nolabel="1" />
  19. </page>
  20. <page string="Users">
  21. <field name="line_ids" nolabel="1">
  22. <tree
  23. editable="bottom"
  24. decoration-muted="not is_enabled"
  25. >
  26. <field name="user_id" />
  27. <field name="date_from" />
  28. <field name="date_to" />
  29. <field name="is_enabled" />
  30. </tree>
  31. </field>
  32. </page>
  33. <page name="page_internal_notes" string="Internal Notes">
  34. <field name="comment" />
  35. </page>
  36. </notebook>
  37. </sheet>
  38. </form>
  39. </field>
  40. </record>
  41. <record id="view_res_users_role_tree" model="ir.ui.view">
  42. <field name="name">res.users.role.tree</field>
  43. <field name="model">res.users.role</field>
  44. <field name="arch" type="xml">
  45. <tree>
  46. <field name="name" />
  47. <field name="user_ids" />
  48. </tree>
  49. </field>
  50. </record>
  51. <record id="view_res_users_role_search" model="ir.ui.view">
  52. <field name="name">res.users.role.search</field>
  53. <field name="model">res.users.role</field>
  54. <field name="arch" type="xml">
  55. <search string="Roles">
  56. <field name="name" />
  57. <field name="user_ids" />
  58. <field name="implied_ids" />
  59. </search>
  60. </field>
  61. </record>
  62. <record model="ir.actions.act_window" id="action_res_users_role_tree">
  63. <field name="name">Roles</field>
  64. <field name="type">ir.actions.act_window</field>
  65. <field name="res_model">res.users.role</field>
  66. <field name="view_id" ref="view_res_users_role_tree" />
  67. </record>
  68. <menuitem
  69. id="menu_action_res_users_role_tree"
  70. parent="base.menu_users"
  71. action="action_res_users_role_tree"
  72. />
  73. </odoo>