diff --git a/addons/gamification/plan.py b/addons/gamification/plan.py index edba200a75d..379b556df6c 100644 --- a/addons/gamification/plan.py +++ b/addons/gamification/plan.py @@ -242,11 +242,11 @@ class gamification_goal_plan(osv.Model): # goals closed but still opened at the last report date closed_goals_to_report = [] for planline in plan.planline_ids: - closed_goals_to_report.extend( goal_obj.search(cr, uid, [ + closed_goals_to_report.extend(goal_obj.search(cr, uid, [ ('planline_id','=',planline.id), ('start_date', '>=', plan.last_report_date), ('end_date', '<=', plan.last_report_date) - ]) ) + ])) if len(closed_goals_to_report) > 0: # some goals need a final report diff --git a/addons/hr/hr_view.xml b/addons/hr/hr_view.xml index 109bbd0cf92..b3f8628ccc1 100644 --- a/addons/hr/hr_view.xml +++ b/addons/hr/hr_view.xml @@ -31,15 +31,9 @@
-
- -
-
- - -
+
@@ -91,6 +85,10 @@
+
+ + +