Skip to content

[17.0][MIG] hr_employee_document_from_applicant: Migration to 17.0#1547

Merged
OCA-git-bot merged 7 commits intoOCA:17.0from
Tecnativa:17.0-mig-hr_employee_document_from_applicant
Feb 16, 2026
Merged

[17.0][MIG] hr_employee_document_from_applicant: Migration to 17.0#1547
OCA-git-bot merged 7 commits intoOCA:17.0from
Tecnativa:17.0-mig-hr_employee_document_from_applicant

Conversation

@pilarvargas-tecnativa
Copy link
Contributor

@pilarvargas-tecnativa pilarvargas-tecnativa commented Feb 14, 2026

Move attachment transfer logic from hr.employee.create to hr.applicant.create_employee_from_applicant
to avoid unnecessary execution when creating employees outside recruitment workflow.
No behavior change, only performance optimization.

@Tecnativa TT60569

@victoralmau @pedrobaeza please review

Copy link
Member

@victoralmau victoralmau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code and functional review OK

@pedrobaeza
Copy link
Member

/ocabot migration hr_employee_document_from_applicant

@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Feb 16, 2026
@OCA-git-bot OCA-git-bot mentioned this pull request Feb 16, 2026
24 tasks
)
if applicant_attachments:
for attachment in applicant_attachments:
attachment.write(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You have to make a copy, not to move them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a change I have added as an improvement, not as part of the migration.

@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 17.0-mig-hr_employee_document_from_applicant branch from e319dfd to b05fbef Compare February 16, 2026 08:19
Move attachment transfer logic from hr.employee.create to hr.applicant.create_employee_from_applicant
to avoid unnecessary execution when creating employees outside recruitment workflow.
No behavior change, only performance optimization.

TT60569
…hments

Change to preserve attachments in applicant record.
This maintains recruitment history and prevents data loss if applicant is archived.

TT60569
@pilarvargas-tecnativa pilarvargas-tecnativa force-pushed the 17.0-mig-hr_employee_document_from_applicant branch from b05fbef to 75cadd7 Compare February 16, 2026 08:52
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-1547-by-pedrobaeza-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 706c31b into OCA:17.0 Feb 16, 2026
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 5e13a77. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 17.0-mig-hr_employee_document_from_applicant branch February 16, 2026 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants