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.

77 lines
3.1 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. <field
  31. name="company_id"
  32. groups="base.group_multi_company"
  33. />
  34. </tree>
  35. </field>
  36. </page>
  37. <page name="page_internal_notes" string="Internal Notes">
  38. <field name="comment" />
  39. </page>
  40. </notebook>
  41. </sheet>
  42. </form>
  43. </field>
  44. </record>
  45. <record id="view_res_users_role_tree" model="ir.ui.view">
  46. <field name="name">res.users.role.tree</field>
  47. <field name="model">res.users.role</field>
  48. <field name="arch" type="xml">
  49. <tree>
  50. <field name="name" />
  51. <field name="user_ids" />
  52. </tree>
  53. </field>
  54. </record>
  55. <record id="view_res_users_role_search" model="ir.ui.view">
  56. <field name="name">res.users.role.search</field>
  57. <field name="model">res.users.role</field>
  58. <field name="arch" type="xml">
  59. <search string="Roles">
  60. <field name="name" />
  61. <field name="user_ids" />
  62. <field name="implied_ids" />
  63. </search>
  64. </field>
  65. </record>
  66. <record model="ir.actions.act_window" id="action_res_users_role_tree">
  67. <field name="name">Roles</field>
  68. <field name="type">ir.actions.act_window</field>
  69. <field name="res_model">res.users.role</field>
  70. <field name="view_id" ref="view_res_users_role_tree" />
  71. </record>
  72. <menuitem
  73. id="menu_action_res_users_role_tree"
  74. parent="base.menu_users"
  75. action="action_res_users_role_tree"
  76. />
  77. </odoo>