Skip to content

[OU-ADD] l10n_tr_nilvera: convert environment selection to use_test_env boolean#32

Closed
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-l10n_tr_nilvera-pre-migration
Closed

[OU-ADD] l10n_tr_nilvera: convert environment selection to use_test_env boolean#32
dnplkndll wants to merge 1 commit into
19.0from
19.0-mig-l10n_tr_nilvera-pre-migration

Conversation

@dnplkndll
Copy link
Copy Markdown

Semantic conversion: the 18.0 res.company selection l10n_tr_nilvera_environment ('production'/'sandbox') is replaced in 19.0 by the boolean l10n_tr_nilvera_use_test_env. Without a pre-migration the data is lost.

Steps in pre-migration.py:

  • rename_columns preserves the 18.0 selection column as openupgrade_legacy_19_0_l10n_tr_nilvera_environment
  • add_fields creates the new boolean with manifest default (False)
  • map_values maps 'sandbox' → True, 'production' → False; NULL rows take the default

Follows the precedent in hr_holidays/19.0.1.6/pre-migration.py (yes/no → boolean pattern).

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

dnplkndll added a commit that referenced this pull request May 26, 2026
Track A batch of 5 l10n_* modules complete:
 - l10n_in_edi, l10n_ph (annotation-only) - PRs #30, #31
 - l10n_tr_nilvera (selection -> boolean) - PR #32
 - l10n_sa_edi (rename_fields + preserve) - PR #33
 - l10n_it_edi (rename_xmlids for ndd consolidation) - PR #34

Deferred:
 - l10n_in_ewaybill (model move + 30+ xmlid moves, needs apriori coordination)
 - l10n_it sibling fix to PR #34 (l10n_it_edi_withholding -> l10n_it
   rename + broader tax-report refactor)
@dnplkndll dnplkndll changed the title [19.0][OU-ADD] l10n_tr_nilvera: convert l10n_tr_nilvera_environment (selection) to l10n_tr_nilvera_use_test_env (boolean) [OU-ADD] l10n_tr_nilvera: convert environment selection to use_test_env boolean May 26, 2026
…nv boolean

rename_columns preserves the 18.0 res.company.l10n_tr_nilvera_environment
selection ('production'/'sandbox') as openupgrade_legacy_19_0_*.
add_fields creates the new boolean l10n_tr_nilvera_use_test_env.
map_values maps 'sandbox' -> True, 'production' -> False; NULL rows
keep the manifest default (False).
@dnplkndll dnplkndll force-pushed the 19.0-mig-l10n_tr_nilvera-pre-migration branch from 467f336 to 6b7f4f5 Compare May 26, 2026 16:54
@dnplkndll dnplkndll closed this Jun 3, 2026
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