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.

71 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. <odoo>
  5. <record id="view_res_users_role_form" model="ir.ui.view">
  6. <field name="name">res.users.role.form</field>
  7. <field name="model">res.users.role</field>
  8. <field name="arch" type="xml">
  9. <form string="Role" version="7.0">
  10. <sheet>
  11. <group>
  12. <field name="name"/>
  13. <field name="group_id" required="0" readonly="1"/>
  14. </group>
  15. <notebook>
  16. <page string="Groups">
  17. <field name="implied_ids" nolabel="1"/>
  18. </page>
  19. <page string="Users">
  20. <field name="line_ids" nolabel="1">
  21. <tree editable="bottom" colors="grey: not is_enabled;">
  22. <field name="user_id"/>
  23. <field name="date_from"/>
  24. <field name="date_to"/>
  25. <field name="is_enabled"/>
  26. </tree>
  27. </field>
  28. </page>
  29. </notebook>
  30. </sheet>
  31. </form>
  32. </field>
  33. </record>
  34. <record id="view_res_users_role_tree" model="ir.ui.view">
  35. <field name="name">res.users.role.tree</field>
  36. <field name="model">res.users.role</field>
  37. <field name="arch" type="xml">
  38. <tree string="Role">
  39. <field name="name"/>
  40. <field name="user_ids"/>
  41. </tree>
  42. </field>
  43. </record>
  44. <record id="view_res_users_role_search" model="ir.ui.view">
  45. <field name="name">res.users.role.search</field>
  46. <field name="model">res.users.role</field>
  47. <field name="arch" type="xml">
  48. <search string="Roles">
  49. <field name="name"/>
  50. <field name="user_ids"/>
  51. <field name="implied_ids"/>
  52. </search>
  53. </field>
  54. </record>
  55. <record model="ir.actions.act_window" id="action_res_users_role_tree">
  56. <field name="name">Roles</field>
  57. <field name="type">ir.actions.act_window</field>
  58. <field name="res_model">res.users.role</field>
  59. <field name="view_type">form</field>
  60. <field name="view_id" ref="view_res_users_role_tree"/>
  61. </record>
  62. <menuitem id="menu_action_res_users_role_tree"
  63. parent="base.menu_users"
  64. action="action_res_users_role_tree"/>
  65. </odoo>