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.

77 lines
2.5 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Copyright (c) 2017-2019 MuK IT GmbH.
  4. This file is part of MuK Security
  5. (see https://mukit.at).
  6. This program is free software: you can redistribute it and/or modify
  7. it under the terms of the GNU Lesser General Public License as published by
  8. the Free Software Foundation, either version 3 of the License, or
  9. (at your option) any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU Lesser General Public License for more details.
  14. You should have received a copy of the GNU Lesser General Public License
  15. along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <odoo>
  18. <record id="view_security_access_groups_tree" model="ir.ui.view">
  19. <field name="name">muk_security_access_groups.tree</field>
  20. <field name="model">muk_security.access_groups</field>
  21. <field name="mode">primary</field>
  22. <field name="inherit_id" ref="muk_utils.view_mixins_groups_tree"/>
  23. <field name="arch" type="xml">
  24. <xpath expr="//field[@name='name']" position="after">
  25. <field name="perm_read" />
  26. <field name="perm_create" />
  27. <field name="perm_write" />
  28. <field name="perm_unlink" />
  29. </xpath>
  30. </field>
  31. </record>
  32. <record id="view_security_access_groups_form" model="ir.ui.view">
  33. <field name="name">muk_security_access_groups.form</field>
  34. <field name="model">muk_security.access_groups</field>
  35. <field name="mode">primary</field>
  36. <field name="inherit_id" ref="muk_utils.view_mixins_groups_form"/>
  37. <field name="arch" type="xml">
  38. <xpath expr="//group[@name='group']" position="after">
  39. <group string="Settings">
  40. <group>
  41. <field name="perm_create" />
  42. <field name="perm_read" />
  43. </group>
  44. <group>
  45. <field name="perm_write" />
  46. <field name="perm_unlink" />
  47. </group>
  48. </group>
  49. </xpath>
  50. <xpath expr="//page[@name='childs']//field[@name='name']" position="after">
  51. <field name="perm_read" />
  52. <field name="perm_create" />
  53. <field name="perm_write" />
  54. <field name="perm_unlink" />
  55. </xpath>
  56. </field>
  57. </record>
  58. <record id="action_security_access_groups" model="ir.actions.act_window">
  59. <field name="name">Access Groups</field>
  60. <field name="res_model">muk_security.access_groups</field>
  61. <field name="view_mode">tree,form</field>
  62. </record>
  63. <menuitem id="menu_security_access_groups" name="Access Groups"
  64. parent="base.menu_security" action="action_security_access_groups" />
  65. </odoo>