[ADD] hr_recruitment_ux: SLA de días para deteriorarse por vacante#62
Closed
mav-adhoc wants to merge 3 commits into
Closed
[ADD] hr_recruitment_ux: SLA de días para deteriorarse por vacante#62mav-adhoc wants to merge 3 commits into
mav-adhoc wants to merge 3 commits into
Conversation
Permite configurar días para deteriorarse específicos por vacante (hr.job), sin afectar otras posiciones que compartan la misma etapa. - Nuevo boolean `use_rotting_per_job` en hr.job: cuando activo, usa los días configurados en la vacante en lugar del threshold de la etapa. - Campo `rotting_threshold_days` en hr.job: threshold exclusivo de la vacante; 0 significa sin deterioro para esa posición. - Override de `_compute_rotting` y `_search_is_rotting` en hr.applicant para respetar la configuración por vacante manteniendo compatibilidad con el comportamiento estándar por etapa.
Reemplaza la implementación compleja (_get_rotting_domain, _is_rotting_feature_enabled, _search_is_rotting) por un único override de _compute_rotting que llama a super() y luego corrige los postulantes con SLA por vacante activo.
Contributor
Author
|
Cerrado: los cambios fueron incorporados al PR #59 para mantener ambos puntos en un único PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Resumen
Implementa el Punto 2 de la tarea T-63402: configuración de días para deteriorarse (rotting SLA) a nivel de vacante, sin afectar otras posiciones que compartan la misma etapa del pipeline.
Cambios
hr.job: nuevo booleanuse_rotting_per_job("Usar días para deteriorarse por vacante") y campo enterorotting_threshold_days("Días para deteriorarse").hr.applicant: overrides de_compute_rottingy_search_is_rottingpara aplicar el SLA de la vacante cuandouse_rotting_per_job=True, manteniendo compatibilidad con el comportamiento estándar por etapa.hr.job: los dos nuevos campos aparecen en el grupo "Hiring Process" del formulario de vacante.Comportamiento
use_rotting_per_job=Falseuse_rotting_per_job=True,rotting_threshold_days=N>0use_rotting_per_job=True,rotting_threshold_days=0Plan de prueba
use_rotting_per_job=Truey threshold de 2 días.use_rotting_per_joby verificar que vuelve a usar el threshold de la etapa.rotting_threshold_days=0yuse_rotting_per_job=True, verificar que el postulante nunca se deteriora.