Skip to content

[19.0][MIG] hr_recruitment#5612

Open
hbrunn wants to merge 1 commit intoOCA:19.0from
hbrunn:19.0-hr_recruitment
Open

[19.0][MIG] hr_recruitment#5612
hbrunn wants to merge 1 commit intoOCA:19.0from
hbrunn:19.0-hr_recruitment

Conversation

@hbrunn
Copy link
Copy Markdown
Member

@hbrunn hbrunn commented May 4, 2026

@hbrunn hbrunn added this to the 19.0 milestone May 4, 2026
@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:19.0 labels May 4, 2026
@hbrunn
Copy link
Copy Markdown
Member Author

hbrunn commented May 4, 2026

/ocabot migration hr_recruitment

Copy link
Copy Markdown
Contributor

@MiquelRForgeFlow MiquelRForgeFlow left a comment

Choose a reason for hiding this comment

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

Please rebase.

Comment on lines +16 to +18
openupgrade.lift_constraints(
env.cr, openupgrade.get_legacy_name("hr_candidate"), "id", cascade=True
)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
openupgrade.lift_constraints(
env.cr, openupgrade.get_legacy_name("hr_candidate"), "id", cascade=True
)
openupgrade.remove_tables_fks(
env.cr, [openupgrade.get_legacy_name("hr_candidate")]
)

cleaner and safer

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

they do different things, I think we need both actually

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I thought all the things that lift_constraints does are included in remove_tables_fks. If not, then put both 🤷‍♂️

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.

3 participants