odoo/odoo#135779

Created by fw-bot
Merged at e15388693e3f91db45a91a391ebaa823d6aefaba

Statuses:

label
odoo-dev:saas-16.3-16.0-opw-3508043-submission_job_offer_unpublished_issue-thle-cU2D-fw
head
9db712207d4ab45fc252238f40774cede4a5334f
merged
2 years ago by Bugfix, Thomas Lefebvre (thle)
odoo/odoo
16.0 #135654
saas-16.1 #135765
saas-16.2 #135773
saas-16.3 #135779
saas-16.4 #135787
17.0
18.0
saas-18.1
saas-18.2
saas-18.3
master #135791

[FW][FIX] website_hr_recruitment: apply for an unpublished job internally

Issue:

Since the commit 1, it was no longer possible to apply for a job via the website if it is unpublished.
This made it impossible to apply for internal job offers.

Solution:

Since the commit 2, it is possible to distinguish between unpublished and archived job offers.

The behavior after this commit is as follows:

  • if the job is published --> everybody can apply;
  • if the job is not published --> everybody can apply but the job page is hidden;
    We need to know it, i.e. for internal use only.
  • if the job is archived --> nobody can apply;
    There is an error message "the job offer has been closed".

opw-3508043

Forward-Port-Of: #135654