[REM] portal_gamification: kill the module

The goal is to prepare the removal of
'portal' module.

Since this module only provides access rules and
rights, those ones are moved directly into its
parent module (aka gamification).
Since no module depends on it, we can remove it
without problem.
This commit is contained in:
Jérome Maes
2017-03-23 09:59:58 +01:00
parent 330fe871bc
commit b91b66c686
6 changed files with 9 additions and 43 deletions
@@ -4,7 +4,7 @@
<record id="goal_user_visibility" model="ir.rule">
<field name="name">User can only see his/her goals or goal from the same challenge in board visibility</field>
<field name="model_id" ref="model_gamification_goal"/>
<field name="groups" eval="[(4, ref('base.group_user'))]"/>
<field name="groups" eval="[(4, ref('base.group_user')), (4, ref('base.group_portal'))]"/>
<field name="perm_read" eval="True"/>
<field name="perm_write" eval="True"/>
<field name="perm_create" eval="False"/>
@@ -2,18 +2,26 @@ id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
goal_employee,"Goal Employee",model_gamification_goal,base.group_user,1,1,0,0
goal_manager,"Goal Manager",model_gamification_goal,base.group_erp_manager,1,1,1,1
goal_portal,"Goal Portal",gamification.model_gamification_goal,base.group_portal,1,1,0,0
goal_definition_employee,"Goal Definition Employee",model_gamification_goal_definition,base.group_user,1,0,0,0
goal_definition_manager,"Goal Definition Manager",model_gamification_goal_definition,base.group_erp_manager,1,1,1,1
goal_definition_portal,"Goal Definition Portal",gamification.model_gamification_goal_definition,base.group_portal,1,0,0,0
challenge_employee,"Goal Challenge Employee",model_gamification_challenge,base.group_user,1,0,0,0
challenge_manager,"Goal Challenge Manager",model_gamification_challenge,base.group_erp_manager,1,1,1,1
challenge_portal,"Goal Challenge Portal",gamification.model_gamification_challenge,base.group_portal,1,0,0,0
challenge_line_employee,"Challenge Line Employee",model_gamification_challenge_line,base.group_user,1,0,0,0
challenge_line_manager,"Challenge Line Manager",model_gamification_challenge_line,base.group_erp_manager,1,1,1,1
challenge_line_portal,"Challenge Line Portal",gamification.model_gamification_challenge_line,base.group_portal,1,0,0,0
badge_employee,"Badge Employee",model_gamification_badge,base.group_user,1,0,0,0
badge_manager,"Badge Manager",model_gamification_badge,base.group_erp_manager,1,1,1,1
badge_portal,"Badge Portal",gamification.model_gamification_badge,base.group_portal,1,0,0,0
badge_public,"Badge Public",gamification.model_gamification_badge,base.group_public,1,0,0,0
badge_user_employee,"Badge-user Employee",model_gamification_badge_user,base.group_user,1,1,1,0
badge_user_manager,"Badge-user Manager",model_gamification_badge_user,base.group_erp_manager,1,1,1,1
badge_user_portal,"Badge-user Portal",gamification.model_gamification_badge_user,base.group_portal,1,1,1,0
badge_user_public,"Badge-user Public",gamification.model_gamification_badge_user,base.group_public,1,0,0,0
1 id name model_id/id group_id/id perm_read perm_write perm_create perm_unlink
2 goal_employee Goal Employee model_gamification_goal base.group_user 1 1 0 0
3 goal_manager Goal Manager model_gamification_goal base.group_erp_manager 1 1 1 1
4 goal_definition_employee goal_portal Goal Definition Employee Goal Portal model_gamification_goal_definition gamification.model_gamification_goal base.group_user base.group_portal 1 0 1 0 0
5 goal_definition_employee Goal Definition Employee model_gamification_goal_definition base.group_user 1 0 0 0
6 goal_definition_manager Goal Definition Manager model_gamification_goal_definition base.group_erp_manager 1 1 1 1
7 challenge_employee goal_definition_portal Goal Challenge Employee Goal Definition Portal model_gamification_challenge gamification.model_gamification_goal_definition base.group_user base.group_portal 1 0 0 0
8 challenge_manager challenge_employee Goal Challenge Manager Goal Challenge Employee model_gamification_challenge base.group_erp_manager base.group_user 1 1 0 1 0 1 0
9 challenge_manager Goal Challenge Manager model_gamification_challenge base.group_erp_manager 1 1 1 1
10 challenge_line_employee challenge_portal Challenge Line Employee Goal Challenge Portal model_gamification_challenge_line gamification.model_gamification_challenge base.group_user base.group_portal 1 0 0 0
11 challenge_line_manager challenge_line_employee Challenge Line Manager Challenge Line Employee model_gamification_challenge_line base.group_erp_manager base.group_user 1 1 0 1 0 1 0
12 badge_employee challenge_line_manager Badge Employee Challenge Line Manager model_gamification_badge model_gamification_challenge_line base.group_user base.group_erp_manager 1 0 1 0 1 0 1
13 challenge_line_portal Challenge Line Portal gamification.model_gamification_challenge_line base.group_portal 1 0 0 0
14 badge_manager badge_employee Badge Manager Badge Employee model_gamification_badge base.group_erp_manager base.group_user 1 1 0 1 0 1 0
15 badge_user_employee badge_manager Badge-user Employee Badge Manager model_gamification_badge_user model_gamification_badge base.group_user base.group_erp_manager 1 1 1 0 1
16 badge_user_manager badge_portal Badge-user Manager Badge Portal model_gamification_badge_user gamification.model_gamification_badge base.group_erp_manager base.group_portal 1 1 0 1 0 1 0
17 badge_public Badge Public gamification.model_gamification_badge base.group_public 1 0 0 0
18 badge_user_employee Badge-user Employee model_gamification_badge_user base.group_user 1 1 1 0
19 badge_user_manager Badge-user Manager model_gamification_badge_user base.group_erp_manager 1 1 1 1
20 badge_user_portal Badge-user Portal gamification.model_gamification_badge_user base.group_portal 1 1 1 0
21 badge_user_public Badge-user Public gamification.model_gamification_badge_user base.group_public 1 0 0 0
22
23
24
25
26
27
-2
View File
@@ -1,2 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
@@ -1,22 +0,0 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
{
'name': 'Portal Gamification',
'version': '1',
'category': 'Extra Tools',
'complexity': 'easy',
'description': """
This module adds security rules for gamification to allow portal users to participate to challenges
===================================================================================================
""",
'depends': ['gamification','portal'],
'data': [
'security/ir.model.access.csv',
'security/portal_security.xml',
],
'installable': True,
'auto_install': True,
'category': 'Hidden',
}
@@ -1,9 +0,0 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
goal_portal,"Goal Portal",gamification.model_gamification_goal,base.group_portal,1,1,0,0
goal_definition_portal,"Goal Definition Portal",gamification.model_gamification_goal_definition,base.group_portal,1,0,0,0
challenge_portal,"Goal Challenge Portal",gamification.model_gamification_challenge,base.group_portal,1,0,0,0
challenge_line_portal,"Challenge Line Portal",gamification.model_gamification_challenge_line,base.group_portal,1,0,0,0
badge_portal,"Badge Portal",gamification.model_gamification_badge,base.group_portal,1,0,0,0
badge_public,"Badge Public",gamification.model_gamification_badge,base.group_public,1,0,0,0
badge_user_portal,"Badge-user Portal",gamification.model_gamification_badge_user,base.group_portal,1,1,1,0
badge_user_public,"Badge-user Public",gamification.model_gamification_badge_user,base.group_public,1,0,0,0
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 goal_portal Goal Portal gamification.model_gamification_goal base.group_portal 1 1 0 0
3 goal_definition_portal Goal Definition Portal gamification.model_gamification_goal_definition base.group_portal 1 0 0 0
4 challenge_portal Goal Challenge Portal gamification.model_gamification_challenge base.group_portal 1 0 0 0
5 challenge_line_portal Challenge Line Portal gamification.model_gamification_challenge_line base.group_portal 1 0 0 0
6 badge_portal Badge Portal gamification.model_gamification_badge base.group_portal 1 0 0 0
7 badge_public Badge Public gamification.model_gamification_badge base.group_public 1 0 0 0
8 badge_user_portal Badge-user Portal gamification.model_gamification_badge_user base.group_portal 1 1 1 0
9 badge_user_public Badge-user Public gamification.model_gamification_badge_user base.group_public 1 0 0 0
@@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<record id="gamification.goal_user_visibility" model="ir.rule">
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
</record>
</data>
</odoo>