Skip to content

[19.0][MIG] marketing_card: trivial annotation#5665

Open
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-mig-marketing-card-trivial
Open

[19.0][MIG] marketing_card: trivial annotation#5665
dnplkndll wants to merge 1 commit into
OCA:19.0from
ledoent:19.0-mig-marketing-card-trivial

Conversation

@dnplkndll
Copy link
Copy Markdown

@dnplkndll dnplkndll commented May 21, 2026

Annotation-only coverage for marketing_card. Split out from #5651 because the OCA test workflow was failing on this module via an upstream openupgradelib bug.

Status

OCA/openupgradelib#450 merged 2026-05-21 by @MiquelRForgeFlow. CI re-triggered to pick up the fix (workflow installs openupgradelib from GitHub main, so the patch propagates automatically).

Background (kept for reviewer context)

Adding marketing_card to MODULES_NEW previously triggered openupgrade.merge_models()'s card_campaign cross-reference UPDATE block, which had two bugs introduced by openupgradelib #436 (Feb 2026): a sql.SQL().format() placeholder mismatch (KeyError: 'old_model') and a double-AND SQL typo. Hit on every model-merge migration when marketing_card is installed — e.g. hr_recruitment/19.0.1.1/pre-migration.py:14's hr.candidate → hr.applicant merge. Detailed forensics in OCA/openupgradelib#450.

Verification trail

  • Bug originally reproduced on the isolated fork-CI branch 19.0-mig-test-marketing-card-isolated — both seeds failed with the exact KeyError: 'old_model' from the openupgradelib helper. Isolation confirmed.
  • After OCA/openupgradelib#450 merge: CI re-run on this PR (see below for green status).
  • This PR's work doc is annotation-only — no pre/post-migration code. Convention-clean per scripts/verify-pr-staged.sh.

@OCA-git-bot OCA-git-bot added mod:openupgrade_scripts Module openupgrade_scripts series:19.0 labels May 21, 2026
@dnplkndll dnplkndll changed the title [19.0][MIG] marketing_card: trivial annotation (blocked on openupgradelib#450) [19.0][MIG] marketing_card: trivial annotation May 21, 2026
@dnplkndll dnplkndll force-pushed the 19.0-mig-marketing-card-trivial branch from 36155bb to 65dc654 Compare May 21, 2026 13:20
@dnplkndll dnplkndll force-pushed the 19.0-mig-marketing-card-trivial branch from 65dc654 to 0a39155 Compare May 21, 2026 13:20
@dnplkndll dnplkndll marked this pull request as ready for review May 21, 2026 13:44
@dnplkndll
Copy link
Copy Markdown
Author

@MiquelRForgeFlow ready ( unblocked by openupgradelib#450).

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.

2 participants