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.5 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. <field name="company_id" groups="base.group_multi_company"/>
  28. </tree>
  29. </field>
  30. </page>
  31. </notebook>
  32. </sheet>
  33. </form>
  34. </field>
  35. </record>
  36. <record id="view_res_users_role_tree" model="ir.ui.view">
  37. <field name="name">res.users.role.tree</field>
  38. <field name="model">res.users.role</field>
  39. <field name="arch" type="xml">
  40. <tree>
  41. <field name="name"/>
  42. <field name="user_ids"/>
  43. </tree>
  44. </field>
  45. </record>
  46. <record id="view_res_users_role_search" model="ir.ui.view">
  47. <field name="name">res.users.role.search</field>
  48. <field name="model">res.users.role</field>
  49. <field name="arch" type="xml">
  50. <search string="Roles">
  51. <field name="name"/>
  52. <field name="user_ids"/>
  53. <field name="implied_ids"/>
  54. </search>
  55. </field>
  56. </record>
  57. <record model="ir.actions.act_window" id="action_res_users_role_tree">
  58. <field name="name">Roles</field>
  59. <field name="type">ir.actions.act_window</field>
  60. <field name="res_model">res.users.role</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>