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.

122 lines
3.4 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (C) 2017 MuK IT GmbH
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU Affero General Public License as
  6. published by the Free Software Foundation, either version 3 of the
  7. License, or (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Affero General Public License for more details.
  12. You should have received a copy of the GNU Affero General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. -->
  15. <odoo>
  16. <record id="view_security_groups_tree" model="ir.ui.view">
  17. <field name="name">muk_security_groups.tree</field>
  18. <field name="model">muk_security.groups</field>
  19. <field name="arch" type="xml">
  20. <tree string="Groups">
  21. <field name="name" />
  22. <field name="perm_read" />
  23. <field name="perm_create" />
  24. <field name="perm_write" />
  25. <field name="perm_unlink" />
  26. <field name="count_users" />
  27. </tree>
  28. </field>
  29. </record>
  30. <record id="view_security_groups_form" model="ir.ui.view">
  31. <field name="name">muk_security_groups.form</field>
  32. <field name="model">muk_security.groups</field>
  33. <field name="arch" type="xml">
  34. <form string="Group">
  35. <sheet>
  36. <div class="oe_title">
  37. <label for="name" class="oe_edit_only" />
  38. <h1>
  39. <field name="name" />
  40. </h1>
  41. </div>
  42. <group string="Group">
  43. <group>
  44. <field name="parent_group" />
  45. </group>
  46. <group>
  47. <field name="count_users" />
  48. </group>
  49. </group>
  50. <group string="Settings">
  51. <group>
  52. <field name="perm_create" />
  53. <field name="perm_read" />
  54. </group>
  55. <group>
  56. <field name="perm_write" />
  57. <field name="perm_unlink" />
  58. </group>
  59. </group>
  60. <notebook>
  61. <page name="users" string="Users">
  62. <field name="users">
  63. <tree string="Users">
  64. <field name="name" />
  65. <field name="login" />
  66. <field name="lang" />
  67. <field name="login_date" />
  68. </tree>
  69. </field>
  70. </page>
  71. <page name="groups" string="Groups">
  72. <field name="groups">
  73. <tree string="Groups">
  74. <field name="name" />
  75. <field name="comment" />
  76. </tree>
  77. </field>
  78. </page>
  79. <page name="extra_users" string="Explicit Users">
  80. <field name="explicit_users">
  81. <tree string="Explicit Users">
  82. <field name="name" />
  83. <field name="login" />
  84. <field name="lang" />
  85. <field name="login_date" />
  86. </tree>
  87. </field>
  88. </page>
  89. <page string="Child Groups">
  90. <field name="child_groups">
  91. <tree string="Groups">
  92. <field name="name" />
  93. <field name="perm_read" />
  94. <field name="perm_create" />
  95. <field name="perm_write" />
  96. <field name="perm_unlink" />
  97. <field name="count_users" />
  98. </tree>
  99. </field>
  100. </page>
  101. </notebook>
  102. </sheet>
  103. </form>
  104. </field>
  105. </record>
  106. <record id="action_security_groups" model="ir.actions.act_window">
  107. <field name="name">Access Groups</field>
  108. <field name="res_model">muk_security.groups</field>
  109. <field name="view_mode">tree,form</field>
  110. </record>
  111. <menuitem id="menu_security_groups" name="Access Groups"
  112. parent="base.menu_security" action="action_security_groups" />
  113. </odoo>