diff --git a/itou/job_applications/models.py b/itou/job_applications/models.py index ab5133addbb..eeb0c6a234d 100644 --- a/itou/job_applications/models.py +++ b/itou/job_applications/models.py @@ -994,7 +994,6 @@ def unset_processed_at(self, *args, **kwargs): JobApplicationWorkflow.TRANSITION_RENDER_OBSOLETE, JobApplicationWorkflow.TRANSITION_TRANSFER, JobApplicationWorkflow.TRANSITION_RESET, - JobApplicationWorkflow.TRANSITION_EXTERNAL_TRANSFER, ) def unarchive(self, *args, **kwargs): self.archived_at = None diff --git a/tests/job_applications/tests.py b/tests/job_applications/tests.py index 76d1f4fb200..c34796afaa9 100644 --- a/tests/job_applications/tests.py +++ b/tests/job_applications/tests.py @@ -1703,6 +1703,8 @@ def test_job_application_transitions(transition, from_state): JobApplicationState.PRIOR_TO_HIRE, } & {from_state.name, transition.target.name} + # Employer transfers to another structure, they likely won’t interact with this job application again. + or JobApplicationWorkflow.TRANSITION_EXTERNAL_TRANSFER == transition.name ) ], )