Skip to content

[19.0][OU-ADD] hr_attendance + hr_recruitment_skills: pre-migration column renames#5635

Closed
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-mig-hr-family-overtime-skills
Closed

[19.0][OU-ADD] hr_attendance + hr_recruitment_skills: pre-migration column renames#5635
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-mig-hr-family-overtime-skills

Conversation

@dnplkndll
Copy link
Copy Markdown
Contributor

@dnplkndll dnplkndll commented May 15, 2026

Pre-migration column-rename scripts for two model-rename refactors in 4 hr_* submodules: hr_attendance, hr_holidays_attendance, hr_skills, hr_recruitment_skills. Companion to #5634 (13 simple submodules).

Two model renames already in apriori.renamed_models:

  • hr.attendance.overtimehr.attendance.overtime.line (hr_attendance, hr_holidays_attendance)
  • hr.candidate.skillhr.applicant.skill (hr_recruitment_skills)

Apriori handles both via update_module_names / rename_models in base/19.0.1.3/pre-migration. Plus a small pre-migration in hr_recruitment_skills to seed the hr_applicant_hr_skill_rel join table from the legacy table name.

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:19.0 labels May 15, 2026
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr-family-overtime-skills branch 2 times, most recently from 376a431 to ada78a5 Compare May 15, 2026 18:42
@dnplkndll dnplkndll marked this pull request as draft May 15, 2026 18:53
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr-family-overtime-skills branch 3 times, most recently from 5e2eb6c to 0ce47ad Compare May 19, 2026 01:16
@dnplkndll dnplkndll marked this pull request as ready for review May 19, 2026 01:16
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr-family-overtime-skills branch from 0ce47ad to 6cac1d5 Compare May 19, 2026 13:52
@dnplkndll dnplkndll changed the title [19.0][MIG] hr_*: overtime + skills refactor (4 submodules) [19.0][OU-ADD] hr_attendance + hr_recruitment_skills: pre-migration column renames May 19, 2026
@dnplkndll
Copy link
Copy Markdown
Contributor Author

ready for review @MiquelRForgeFlow @pedrobaeza

@dnplkndll dnplkndll force-pushed the 19.0-mig-hr-family-overtime-skills branch 7 times, most recently from 2a2a542 to e9c545c Compare May 30, 2026 12:37
@legalsylvain legalsylvain added this to the 19.0 milestone Jun 2, 2026
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr-family-overtime-skills branch 4 times, most recently from 7a9ce8e to bd68584 Compare June 2, 2026 17:57
@dnplkndll
Copy link
Copy Markdown
Contributor Author

thanks @hbrunn all addressed in the latest push

@dnplkndll dnplkndll force-pushed the 19.0-mig-hr-family-overtime-skills branch 3 times, most recently from bd68584 to f8b5f8f Compare June 3, 2026 11:27
- hr_attendance: hr.attendance.overtime → .overtime.line (rename_models +
  rename_tables); noupdate group/rule reloaded in post-migration.
- hr_attendance: rename hr.attendance in_city→in_location, out_city→out_location
  (preserve data; analyzer reports them as separate DEL+NEW).
- hr_attendance: precreate hr.attendance.overtime.line.status='approved' and
  manual_duration=duration on the renamed table's historical rows; backfill the
  now-required date. The status compute guards on `if not status`, so precreating
  keeps legacy lines approved instead of recomputing to to_approve.
- hr_attendance: delete the obsolete noupdate ir.rule records (not swept by the
  standard module update).
- hr_holidays_attendance: drop hr.leave / hr.leave.allocation overtime_id — the
  field is removed in 19.0 and the overtime rename invalidated its FK.
- hr_recruitment_skills: hr.candidate.skill → hr.applicant.skill rename;
  noupdate interviewer/officer rules reloaded.
- hr_holidays_attendance, hr_skills: noupdate security/config reloaded.
@dnplkndll dnplkndll force-pushed the 19.0-mig-hr-family-overtime-skills branch from f8b5f8f to 0e3e927 Compare June 3, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:openupgrade_scripts Module openupgrade_scripts series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants