Skip to content

[20.0][MIG] hr_employee_age: Migration to 20.0 - #1677

Open
mcastillol14 wants to merge 32 commits into
OCA:20.0from
mcastillol14:20.0-mig-hr_employee_age
Open

mcastillol14 wants to merge 32 commits into
OCA:20.0from
mcastillol14:20.0-mig-hr_employee_age

Conversation

@mcastillol14

Copy link
Copy Markdown

Migration of hr_employee_age from 19.0 to 20.0, keeping the module history.

Changes:

  • The view xpath no longer matched in 20.0 (div_km_home_work is not in hr_birth_group anymore). age is now placed after birthday_public_display, in the "Personal Information" group.
  • Odoo 20.0 core already defines hr.employee.age (same type, group and compute as this module had), so the model is removed and the module only keeps the view that shows the age on the employee form. Happy to keep the model if reviewers prefer.
  • Tests no longer rely on demo data (hr.employee_admin); they create their own employee. Added cases for before the birthday, without birthday and the field in the form.

6 tests passing on a fresh 20.0 database without demo data. The form was also checked in the browser: the field shows after "Show Birthday To Employees", recalculates when the birthday changes, and users without hr.group_hr_user do not get it.

Migration issue: #1628.

saltonmassally and others added 30 commits November 25, 2026 10:05
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: hr-12.0/hr-12.0-hr_employee_age
Translate-URL: https://translation.odoo-community.org/projects/hr-12-0/hr-12-0-hr_employee_age/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: hr-16.0/hr-16.0-hr_employee_age
Translate-URL: https://translation.odoo-community.org/projects/hr-16-0/hr-16-0-hr_employee_age/
@oca-cla-bot

oca-cla-bot Bot commented Nov 25, 2026

Copy link
Copy Markdown

The following commit authors need to sign the Contributor License Agreement:

CLA not signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.