summaryrefslogtreecommitdiff
path: root/addons/gamification
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2017-02-08 15:16:02 +0100
committerJérome Maes <jem@openerp.com>2017-03-23 09:59:58 +0100
commitb91b66c686b0817d9bf335e97b9f6a4fa672cae2 (patch)
tree286e4917552adce0935c1ea106a32cdc02a5bcd1 /addons/gamification
parent330fe871bca54ebd4404475fd5538f3e299c676d (diff)
[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.
Diffstat (limited to 'addons/gamification')
-rw-r--r--addons/gamification/security/gamification_security.xml2
-rw-r--r--addons/gamification/security/ir.model.access.csv8
2 files changed, 9 insertions, 1 deletions
diff --git a/addons/gamification/security/gamification_security.xml b/addons/gamification/security/gamification_security.xml
index 785d533ae4b..3eecfb2e98c 100644
--- a/addons/gamification/security/gamification_security.xml
+++ b/addons/gamification/security/gamification_security.xml
@@ -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"/>
diff --git a/addons/gamification/security/ir.model.access.csv b/addons/gamification/security/ir.model.access.csv
index 5bfd05af9cc..6a4d9f64a0a 100644
--- a/addons/gamification/security/ir.model.access.csv
+++ b/addons/gamification/security/ir.model.access.csv
@@ -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