[ADD]GOLEM Activities : security access

This commit is contained in:
Fabien Bourgeois 2016-07-21 12:27:54 +02:00
parent 6f0e175ca6
commit a4e821c60b
3 changed files with 11 additions and 5 deletions

View File

@ -20,11 +20,13 @@
'summary': 'Extends Odoo products for multi-activity',
'description': 'Multi-activities management',
'version': '0.1',
'category': 'Non-profit management',
'category': 'GOLEM',
'author': 'Fabien Bourgeois',
'license': 'AGPL-3',
'application': True,
'installable': True,
'depends': ['product', 'golem_base', 'golem_season'],
'data': ['data/golem_activity_data.xml', 'views/golem_activity_view.xml']
'data': ['security/ir.model.access.csv',
'data/golem_activity_data.xml',
'views/golem_activity_view.xml']
}

View File

@ -0,0 +1,3 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_golem_activity_user,Access GOLEM Activity User,model_golem_activity,golem_base.group_golem_user,1,1,1,0
access_golem_activity_manager,Access GOLEM Activity Manager,model_golem_activity,golem_base.group_golem_manager,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_golem_activity_user Access GOLEM Activity User model_golem_activity golem_base.group_golem_user 1 1 1 0
3 access_golem_activity_manager Access GOLEM Activity Manager model_golem_activity golem_base.group_golem_manager 1 1 1 1

View File

@ -98,10 +98,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<!-- Menus -->
<menuitem id="activity_menu" name="Activities"
parent="base.menu_association" sequence="5" />
parent="base.menu_association" sequence="5"
groups="golem_base.group_golem_user" />
<menuitem id="activity_list" name="List"
parent="activity_menu" sequence="0"
action="action" />
groups="golem_base.group_golem_user"
parent="activity_menu" sequence="0" action="action" />
</data>
</openerp>