[FIX] hr_employee_firstname: address_home_id -> work_contact_id (V19 compat)#1581
Open
REANOVA-GIT wants to merge 1 commit into
Open
[FIX] hr_employee_firstname: address_home_id -> work_contact_id (V19 compat)#1581REANOVA-GIT wants to merge 1 commit into
REANOVA-GIT wants to merge 1 commit into
Conversation
…tact_id Odoo 19 supprime hr.employee.address_home_id (refonte HR: la fiche contact privee n est plus liee par ce champ). Remplacer par work_contact_id dans UPDATE_PARTNER_FIELDS + _update_partner_firstname. Patch local Reanova migration V12->V19 - a formaliser en PR OCA.
Contributor
|
Hi @luisg123v, @Savoir-faire Linux, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
hr_employee_firstnameon the19.0branch still referenceshr.employee.address_home_id, which was removed in Odoo 19 (HR refactoring — the private contact link is nowwork_contact_id).Without this fix, the module crashes on a fresh V19 install / runtime as soon as
_update_partner_firstnameis triggered (orUPDATE_PARTNER_FIELDSis read) becauseaddress_home_iddoes not exist onhr.employeeanymore.Changes
Context
Discovered while migrating a large Odoo V12 → V19 deployment (Reanova ERP). The patch has been running in production-like staging for several days without issue.
work_contact_idis the V18+ Odoo replacement for the V12-V17address_home_idfield onhr.employee(cf. Odoo 18 release notes — HR module overhaul).Tests
Manual test on a V19 install with ~180 employees +
partner_firstnamedependency: employees update their partner records (firstname/lastname) correctly through_update_partner_firstnameafter this change. No regression observed on related modules (hr_employee_legal_name, etc.).