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.

72 lines
2.4 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 editable="bottom" decoration-muted="not is_enabled">
  23. <field name="user_id"/>
  24. <field name="date_from"/>
  25. <field name="date_to"/>
  26. <field name="is_enabled"/>
  27. </tree>
  28. </field>
  29. </page>
  30. </notebook>
  31. </sheet>
  32. </form>
  33. </field>
  34. </record>
  35. <record id="view_res_users_role_tree" model="ir.ui.view">
  36. <field name="name">res.users.role.tree</field>
  37. <field name="model">res.users.role</field>
  38. <field name="arch" type="xml">
  39. <tree>
  40. <field name="name"/>
  41. <field name="user_ids"/>
  42. </tree>
  43. </field>
  44. </record>
  45. <record id="view_res_users_role_search" model="ir.ui.view">
  46. <field name="name">res.users.role.search</field>
  47. <field name="model">res.users.role</field>
  48. <field name="arch" type="xml">
  49. <search string="Roles">
  50. <field name="name"/>
  51. <field name="user_ids"/>
  52. <field name="implied_ids"/>
  53. </search>
  54. </field>
  55. </record>
  56. <record model="ir.actions.act_window" id="action_res_users_role_tree">
  57. <field name="name">Roles</field>
  58. <field name="type">ir.actions.act_window</field>
  59. <field name="res_model">res.users.role</field>
  60. <field name="view_type">form</field>
  61. <field name="view_id" ref="view_res_users_role_tree"/>
  62. </record>
  63. <menuitem id="menu_action_res_users_role_tree"
  64. parent="base.menu_users"
  65. action="action_res_users_role_tree"/>
  66. </odoo>