From 4e9092aa487cbb01c05680ce1d2e6a691474a4b6 Mon Sep 17 00:00:00 2001 From: Martin Trigaux Date: Thu, 7 Mar 2013 16:53:58 +0100 Subject: [PATCH] [FIX] revert change in employee bzr revid: mat@openerp.com-20130307155358-z2js7sce3p1w0av3 --- addons/gamification/plan.py | 4 ++-- addons/hr/hr_view.xml | 12 +++++------- 2 files changed, 7 insertions(+), 9 deletions(-) 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 @@
+
+ + +