diff --git a/addons/gamification/__openerp__.py b/addons/gamification/__openerp__.py
index a60b560866a..466cc356016 100644
--- a/addons/gamification/__openerp__.py
+++ b/addons/gamification/__openerp__.py
@@ -23,7 +23,7 @@
'version': '1.0',
'author': 'OpenERP SA',
'category': 'Human Resources',
- 'depends': ['mail', 'report_webkit','hr'],
+ 'depends': ['mail', 'hr'],
'description': """Gamification of goals""",
'data': [
@@ -31,7 +31,9 @@
'badge_view.xml',
'goal_view.xml',
'cron.xml',
- ],
+ 'security/gamification_security.xml',
+ 'security/ir.model.access.csv',
+ ],
'installable': True,
'application': True,
'css': ['static/src/css/goal.css'],
diff --git a/addons/gamification/goal.py b/addons/gamification/goal.py
index b8298707264..3e7013ab0c2 100644
--- a/addons/gamification/goal.py
+++ b/addons/gamification/goal.py
@@ -151,7 +151,7 @@ class gamification_goal(osv.Model):
required=True,
track_visibility='always'),
- 'computation_mode': fields.related('type_id','computation_mode',
+ 'computation_mode': fields.related('type_id', 'computation_mode',
type='char',
string="Type computation mode"),
'remind_update_delay': fields.integer('Remind delay',
diff --git a/addons/gamification/security/gamification_security.xml b/addons/gamification/security/gamification_security.xml
new file mode 100644
index 00000000000..3ec0690531b
--- /dev/null
+++ b/addons/gamification/security/gamification_security.xml
@@ -0,0 +1,43 @@
+
+
+
+
+ Goal
+ Helps you handle your lunch needs, if you are a manager you will be able to create new products, cashmoves and to confirm or cancel orders.
+ 17
+
+
+ User
+
+
+
+ Manager
+
+
+
+
+
+
+
+
+ User can only see his/her goals
+
+
+
+
+
+
+ [('user_id','=',user.id)]
+
+
+ Manager has all rights on user's goals
+
+
+
+
+ Manager has all rights on goal plans
+
+
+
+
+
diff --git a/addons/gamification/security/ir.model.access.csv b/addons/gamification/security/ir.model.access.csv
new file mode 100644
index 00000000000..e83148a503b
--- /dev/null
+++ b/addons/gamification/security/ir.model.access.csv
@@ -0,0 +1,5 @@
+id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
+goal_manager,"Goal Manager",model_gamification_goal,group_goal_manager,1,1,1,1
+goal_user,"Goal User",model_gamification_goal,group_goal_user,1,1,0,0
+plan_manager,"Goal Plan Manager",model_gamification_goal_plan,group_goal_manager,1,1,1,1
+plan_user,"Goal Plan User",model_gamification_goal_plan,group_goal_user,1,0,0,0
diff --git a/addons/hr_evaluation/hr_evaluation_view.xml b/addons/hr_evaluation/hr_evaluation_view.xml
index e01121c9e8e..88b97517847 100644
--- a/addons/hr_evaluation/hr_evaluation_view.xml
+++ b/addons/hr_evaluation/hr_evaluation_view.xml
@@ -147,7 +147,7 @@
-
+
@@ -415,7 +415,7 @@
-
+