[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) <sgv@odoo.com>
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user