summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Francois <tfr@openerp.com>2020-12-17 09:44:32 +0000
committerThibault Francois <tfr@openerp.com>2021-01-04 08:34:31 +0000
commit7331b404bff7f803299a3bfddcf0bd3d040f2cd8 (patch)
tree8344a816157f6708ee023830f0e86f63e606d781 /addons
parentc9ba163e96c61375873f0efcda10be6b48531d63 (diff)
[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#63976 X-original-commit: f242160eb06067ad56dec1c9acfbfe068ad1c6a1 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/hr_recruitment/models/hr_recruitment.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/addons/hr_recruitment/models/hr_recruitment.py b/addons/hr_recruitment/models/hr_recruitment.py
index 3ac06ed5da1..67f5302a3fb 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):