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. <!--
  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_access_groups_tree" model="ir.ui.view">
  17. <field name="name">muk_security_access_groups.tree</field>
  18. <field name="model">muk_security.access_groups</field>
  19. <field name="mode">primary</field>
  20. <field name="inherit_id" ref="muk_utils.view_mixins_groups_tree"/>
  21. <field name="arch" type="xml">
  22. <xpath expr="//field[@name='name']" position="after">
  23. <field name="perm_read" />
  24. <field name="perm_create" />
  25. <field name="perm_write" />
  26. <field name="perm_unlink" />
  27. </xpath>
  28. </field>
  29. </record>
  30. <record id="view_security_access_groups_form" model="ir.ui.view">
  31. <field name="name">muk_security_access_groups.form</field>
  32. <field name="model">muk_security.access_groups</field>
  33. <field name="mode">primary</field>
  34. <field name="inherit_id" ref="muk_utils.view_mixins_groups_form"/>
  35. <field name="arch" type="xml">
  36. <xpath expr="//group[@name='group']" position="after">
  37. <group string="Settings">
  38. <group>
  39. <field name="perm_create" />
  40. <field name="perm_read" />
  41. </group>
  42. <group>
  43. <field name="perm_write" />
  44. <field name="perm_unlink" />
  45. </group>
  46. </group>
  47. </xpath>
  48. <xpath expr="//page[@name='childs']//field[@name='name']" position="after">
  49. <field name="perm_read" />
  50. <field name="perm_create" />
  51. <field name="perm_write" />
  52. <field name="perm_unlink" />
  53. </xpath>
  54. </field>
  55. </record>
  56. <record id="action_security_access_groups" model="ir.actions.act_window">
  57. <field name="name">Access Groups</field>
  58. <field name="res_model">muk_security.access_groups</field>
  59. <field name="view_mode">tree,form</field>
  60. </record>
  61. <menuitem id="menu_security_access_groups" name="Access Groups"
  62. parent="base.menu_security" action="action_security_access_groups" />
  63. </odoo>