From b038bbfad4d66fba33e1f8e69ce16c14ac0e8341 Mon Sep 17 00:00:00 2001 From: Prakash Prajapati Date: Mon, 17 Jul 2023 16:18:06 +0530 Subject: [PATCH] [IMP] hr_recruitment: remove default responsible in applicant Steps: - install hr_recruitment app - Create a job Positions without Recruiter - Published job Positions - Got To website and apply - Open applicant - Public user is set in applicant responsible Issue: public user is set if Recruiter is empty in job Position Fix: In this commit we have removed the default current user as the responsible applicant. task-3424017 closes odoo/odoo#128721 Signed-off-by: Sofie Gvaladze (sgv) --- addons/hr_recruitment/models/hr_applicant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_recruitment/models/hr_applicant.py b/addons/hr_recruitment/models/hr_applicant.py index bd2eb463dc8..783576b6fb1 100644 --- a/addons/hr_recruitment/models/hr_applicant.py +++ b/addons/hr_recruitment/models/hr_applicant.py @@ -249,7 +249,7 @@ class Applicant(models.Model): @api.depends('job_id') def _compute_user(self): for applicant in self: - applicant.user_id = applicant.job_id.user_id.id or self.env.uid + applicant.user_id = applicant.job_id.user_id.id @api.depends('partner_id') def _compute_partner_phone_email(self):