Skip to content

[19.0][MIG] hr+dependencies#5566

Open
hbrunn wants to merge 3 commits intoOCA:19.0from
hbrunn:19.0-hr+dependencies
Open

[19.0][MIG] hr+dependencies#5566
hbrunn wants to merge 3 commits intoOCA:19.0from
hbrunn:19.0-hr+dependencies

Conversation

@hbrunn
Copy link
Member

@hbrunn hbrunn commented Mar 23, 2026

No description provided.

@hbrunn hbrunn added this to the 19.0 milestone Mar 23, 2026
@hbrunn
Copy link
Member Author

hbrunn commented Mar 23, 2026

/ocabot migration hr
/ocabot migration resource_mail
/ocabot migration phone_validation

Comment on lines +384 to +385
DEL res.groups: hr_contract.group_hr_contract_employee_manager (noupdate)
DEL res.groups: hr_contract.group_hr_contract_manager (noupdate)
Copy link
Contributor

@MiquelRForgeFlow MiquelRForgeFlow Mar 25, 2026

Choose a reason for hiding this comment

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

safely remove xmlid in post-migration, they are noupdate

Comment on lines +104 to +107
openupgrade.load_data(env, "hr", "19.0.1.1/noupdate_changes.xml")
fill_hr_version(env)
hr_employee_bank_account_ids(env)
openupgrade.delete_records_safely_by_xml_id(env, _deleted_xmlids)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
openupgrade.load_data(env, "hr", "19.0.1.1/noupdate_changes.xml")
fill_hr_version(env)
hr_employee_bank_account_ids(env)
openupgrade.delete_records_safely_by_xml_id(env, _deleted_xmlids)
fill_hr_version(env)
hr_employee_bank_account_ids(env)
openupgrade.load_data(env, "hr", "19.0.1.1/noupdate_changes.xml")
openupgrade.delete_records_safely_by_xml_id(env, _deleted_xmlids)


# NOTHING TO DO

hr / hr.version / additional_note (text) : NEW
Copy link
Contributor

Choose a reason for hiding this comment

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

fill from both hr_employee.notes and hr_contract.notes

hr_version.employee_id=hr_employee.id
"""
)
env.cr.execute(
Copy link
Contributor

Choose a reason for hiding this comment

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

Add here an if clause to check whether hr_contract was installed or not. The insert query below is only for the case where hr_contract was not installed.
So, you need to add later, and else clause, and put another insert query for the case where hr_contract was installed.

The problem is: get_legacy_name("contract_id") cannot be both filled with id from hr_contract and hr_employee.

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.

2 participants