mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 15:35:46 +07:00
[IMP] runbot: add admin group for setups where other users need to administrate runbot
Closes #43
This commit is contained in:
parent
4e29689e7c
commit
ca9ae51477
@ -12,6 +12,7 @@
|
||||
'data': [
|
||||
'runbot.xml',
|
||||
'res_config_view.xml',
|
||||
'security/runbot_security.xml',
|
||||
'security/ir.model.access.csv',
|
||||
],
|
||||
'installable': True,
|
||||
|
@ -2,3 +2,6 @@ id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_runbot_repo,runbot_repo,runbot.model_runbot_repo,,1,0,0,0
|
||||
access_runbot_branch,runbot_branch,runbot.model_runbot_branch,,1,0,0,0
|
||||
access_runbot_build,runbot_build,runbot.model_runbot_build,,1,0,0,0
|
||||
access_runbot_repo_admin,runbot_repo_admin,runbot.model_runbot_repo,runbot.group_runbot_admin,1,1,1,1
|
||||
access_runbot_branch_admin,runbot_branch_admin,runbot.model_runbot_branch,runbot.group_runbot_admin,1,1,1,1
|
||||
access_runbot_build_admin,runbot_build_admin,runbot.model_runbot_build,runbot.group_runbot_admin,1,1,1,1
|
||||
|
|
12
runbot/security/runbot_security.xml
Normal file
12
runbot/security/runbot_security.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<openerp>
|
||||
<data>
|
||||
|
||||
<record id="group_runbot_admin" model="res.groups">
|
||||
<field name="name">Runbot Manager</field>
|
||||
<field name="category_id" ref="base.module_category_administration"/>
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]"/>
|
||||
</record>
|
||||
|
||||
</data>
|
||||
</openerp>
|
Loading…
Reference in New Issue
Block a user