summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-07-06 17:35:33 +0200
committerNicolas Martinelli <nim@odoo.com>2016-07-07 11:35:52 +0200
commit7e0e27ea79c8fb1ae777308a45d2daecc39b049b (patch)
treee690202c15785ca8a17483553577e0c777b2f935 /addons
parenta082ec6aea69b9153e6df65ebf7a07e458f1620f (diff)
[FIX] hr_recruitment: incorrect recruitment report
The recruitment report used in the pivot view does not filter out the archived records. opw-682119
Diffstat (limited to 'addons')
-rw-r--r--addons/hr_recruitment/report/hr_recruitment_report.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/hr_recruitment/report/hr_recruitment_report.py b/addons/hr_recruitment/report/hr_recruitment_report.py
index 2d6c9250986..ea18a58a35d 100644
--- a/addons/hr_recruitment/report/hr_recruitment_report.py
+++ b/addons/hr_recruitment/report/hr_recruitment_report.py
@@ -59,6 +59,8 @@ class hr_recruitment_report(models.Model):
extract('epoch' from (s.write_date-s.create_date))/(3600*24) as delay_close,
count(*) as nbr
from hr_applicant s
+ where
+ s.active = true
group by
s.date_open,
s.create_date,