-
+
+
@@ -121,8 +122,8 @@
-
-
+
+
diff --git a/addons/gamification/res_users.py b/addons/gamification/res_users.py
index af887319f74..bde044c8fff 100644
--- a/addons/gamification/res_users.py
+++ b/addons/gamification/res_users.py
@@ -72,6 +72,9 @@ class res_users_gamification_group(osv.Model):
vals['own_goal_id'] = goal[1].id
serialized_goals_info['planlines'].append(vals)
+ if len(serialized_goals_info['planlines']) == 0:
+ # plan with no valid planlines
+ continue
else:
# individual report are simply a list of goal
goals_info = plan_obj.get_indivual_goal_info(cr, uid, uid, plan, subset_goal_ids=False, context=context)
diff --git a/addons/gamification/security/gamification_security.xml b/addons/gamification/security/gamification_security.xml
index 8a60957558c..23ec3679add 100644
--- a/addons/gamification/security/gamification_security.xml
+++ b/addons/gamification/security/gamification_security.xml
@@ -6,14 +6,8 @@
17
-
- User
-
-
-
Manager
-
@@ -23,7 +17,7 @@
User can only see his/her goals
-
+
diff --git a/addons/gamification/security/ir.model.access.csv b/addons/gamification/security/ir.model.access.csv
index 8074e3f58c0..803294832b1 100644
--- a/addons/gamification/security/ir.model.access.csv
+++ b/addons/gamification/security/ir.model.access.csv
@@ -1,7 +1,7 @@
id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink
goal_anybody,"Goal Anybody",model_gamification_goal,,1,0,0,0
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
+goal_user,"Goal User",model_gamification_goal,base.group_user,1,1,0,0
goal_type_manager,"Goal Type Manager",model_gamification_goal_type,group_goal_manager,1,1,1,1
goal_type_anybody,"Goal Type Anybody",model_gamification_goal_type,,1,0,0,0
plan_manager,"Goal Plan Manager",model_gamification_goal_plan,group_goal_manager,1,1,1,1
@@ -9,7 +9,8 @@ plan_user_anybody,"Goal Plan Anybody",model_gamification_goal_plan,,1,0,0,0
planline_manager,"Goal Planline Manager",model_gamification_goal_planline,group_goal_manager,1,1,1,1
planline_anybody,"Goal Planline Anybody",model_gamification_goal_planline,,1,0,0,0
badge_manager,"Badge Manager",model_gamification_badge,group_goal_manager,1,1,1,1
+badge_user,"Badge Manager",model_gamification_badge,base.group_user,1,0,0,0
badge_anybody,"Badge Anybody",model_gamification_badge,,1,0,0,0
badge_user_manager,"Badge-user Manager",model_gamification_badge_user,group_goal_manager,1,1,1,1
-badge_user_user,"Badge-user User",model_gamification_badge_user,group_goal_user,1,1,1,0
+badge_user_user,"Badge-user User",model_gamification_badge_user,base.group_user,1,1,1,0
badge_user_anybody,"Badge-user Anybody",model_gamification_badge_user,,1,0,0,0
diff --git a/addons/gamification/templates/reminder.mako b/addons/gamification/templates/reminder.mako
index 632467eb771..f50d798a657 100644
--- a/addons/gamification/templates/reminder.mako
+++ b/addons/gamification/templates/reminder.mako
@@ -10,7 +10,7 @@
${object.report_header or ''}
- You have not updated your progress for the goal ${object.type_id.name} (currently reached at ${object.completeness}%) for at least ${object.remind_update_delay}. Do not forget to do it.
+ You have not updated your progress for the goal ${object.type_id.name} (currently reached at ${object.completeness}%) for at least ${object.remind_update_delay} days. Do not forget to do it.
If you have not changed your score yet, you can use the button "The current value is up to date" to indicate so.