[OU-FIX] hr: backfill NULL audit dates before hr.version fill#47
Open
dnplkndll wants to merge 1 commit into
Open
[OU-FIX] hr: backfill NULL audit dates before hr.version fill#47dnplkndll wants to merge 1 commit into
dnplkndll wants to merge 1 commit into
Conversation
dnplkndll
force-pushed
the
19.0-fix-hr-null-write-date
branch
3 times, most recently
from
May 30, 2026 03:17
0a317d6 to
174479b
Compare
dnplkndll
force-pushed
the
19.0-fix-hr-null-write-date
branch
7 times, most recently
from
June 5, 2026 19:53
1e49dab to
6372576
Compare
dnplkndll
force-pushed
the
19.0-fix-hr-null-write-date
branch
4 times, most recently
from
June 19, 2026 11:58
25262f0 to
af58cd7
Compare
Raw-SQL-imported hr_employee / renamed hr_contract rows can carry NULL create_date/write_date. The post-migration hr.version fill sources those dates into hr_version.date_version (NOT NULL), so NULLs abort the migration (org-chart crash). Backfill them in pre-migration first. Co-authored-by: Hunki Enterprises BV <info@hunki-enterprises.com>
dnplkndll
force-pushed
the
19.0-fix-hr-null-write-date
branch
from
July 16, 2026 20:38
af58cd7 to
2abaeb2
Compare
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.
Port slimmed to the genuine delta on top of upstream's now-landed
hr/19.0.1.1migration (reconciliation vs OCA/19.0).Upstream's
post-migration.pyfill ofhr.versionsourcescreate_date/write_datefromhr_employeeintohr_version.date_version(NOT NULL). Raw-SQL-imported employees / renamedhr_contractrows can carry NULL audit dates, which then abort the migration (org-chart crash). This adds a pre-migrationCOALESCE(..., write_date, TIMESTAMP '2000-01-01')backfill so those NULLs are filled before the version fill reads them.Dropped from the earlier version of this branch (now redundant/out-of-scope):
hr_contract→hr.versionrename + field/xmlid work — identical upstream, so removed.post-migration.pyedit — upstream's newer fill supersedes it.database_cleanup's job, not a migration script.