[IMP] runbot: add admin group for setups where other users need to administrate runbot

Closes #43
This commit is contained in:
Sandy Carter 2014-10-09 10:25:48 -04:00 committed by Olivier Dony
parent 4e29689e7c
commit ca9ae51477
3 changed files with 16 additions and 0 deletions

View File

@ -12,6 +12,7 @@
'data': [
'runbot.xml',
'res_config_view.xml',
'security/runbot_security.xml',
'security/ir.model.access.csv',
],
'installable': True,

View File

@ -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

1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_runbot_repo runbot_repo runbot.model_runbot_repo 1 0 0 0
3 access_runbot_branch runbot_branch runbot.model_runbot_branch 1 0 0 0
4 access_runbot_build runbot_build runbot.model_runbot_build 1 0 0 0
5 access_runbot_repo_admin runbot_repo_admin runbot.model_runbot_repo runbot.group_runbot_admin 1 1 1 1
6 access_runbot_branch_admin runbot_branch_admin runbot.model_runbot_branch runbot.group_runbot_admin 1 1 1 1
7 access_runbot_build_admin runbot_build_admin runbot.model_runbot_build runbot.group_runbot_admin 1 1 1 1

View 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>