From a85f46df962078684734fe54540512d5f45c6949 Mon Sep 17 00:00:00 2001 From: Thibault Francois Date: Thu, 17 Dec 2020 09:44:32 +0000 Subject: [PATCH] [FIX] hr_recruitment: Past application should count archive record Problem ------- Recruitment pipe is design to work better if you archive the lost/refused candidate rather than moving them in a specific column this practice is reinforced by hr_referral. Therefore, the other application button should take into account archive applicant Solution -------- - count archived applicant - show archived applicant closes odoo/odoo#63982 X-original-commit: f242160eb06067ad56dec1c9acfbfe068ad1c6a1 Signed-off-by: Yannick Tivisse (yti) --- addons/hr_recruitment/models/hr_recruitment.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/hr_recruitment/models/hr_recruitment.py b/addons/hr_recruitment/models/hr_recruitment.py index db51d34364f..971b7cf4a9b 100644 --- a/addons/hr_recruitment/models/hr_recruitment.py +++ b/addons/hr_recruitment/models/hr_recruitment.py @@ -362,6 +362,9 @@ class Applicant(models.Model): 'res_model': self._name, 'view_mode': 'kanban,tree,form,pivot,graph,calendar,activity', 'domain': [('email_from', 'in', self.mapped('email_from'))], + 'context': { + 'active_test': False + }, } def _track_template(self, changes):