Skip to content

[OU-ADD] l10n_us: preserve aba_routing#22

Draft
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-l10n_us-pre-migration
Draft

[OU-ADD] l10n_us: preserve aba_routing#22
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-l10n_us-pre-migration

Conversation

@dnplkndll
Copy link
Copy Markdown

Draft fork PR — for internal review before upstreaming to OCA/OpenUpgrade.

The 19.0 l10n_us manifest drops res.partner.bank.aba_routing (per upgrade_analysis.txt) and adds the required l10n_us_bank_account_type selection. Without a pre-migration script, Odoo's update_db drops the aba_routing column on install and the routing-number values are lost.

What this PR does

  • Renames aba_routingopenupgrade_legacy_19_0_aba_routing in pre-migration so the data survives. This is the standard OpenUpgrade preservation pattern — database_cleanup later prompts the operator to inspect or drop the legacy column on their schedule.
  • Annotates upgrade_analysis_work.txt for both the DEL line and the NEW required selection (Odoo's update_db handles the default 'checking' for existing rows).
  • Marks docsource status Done so Test OpenUpgrade migration includes l10n_us in MODULES_NEW.

Verification

End-to-end migrate on the openupgrade-lab against the clean 18.0 prod seed: 179/179 modules loaded (iter 8 with this + companion l10n_in fix on the integration branch).

@dnplkndll dnplkndll changed the title [19.0][OU-ADD] l10n_us: preserve aba_routing before 19.0 drops the column [OU-ADD] l10n_us: preserve aba_routing May 26, 2026
rename_columns moves res_partner_bank.aba_routing (DEL in 19.0) to
openupgrade_legacy_19_0_aba_routing so the operator's bank-routing
values survive for database_cleanup.

l10n_us_bank_account_type (NEW required, default 'checking') is handled
by Odoo's update_db.
@dnplkndll dnplkndll force-pushed the 19.0-mig-l10n_us-pre-migration branch from b974e40 to cf870b5 Compare May 26, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant