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.

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