[18.0][OU-ADD] apriori: module renames and merges#4
Open
eantones wants to merge 7 commits into
Open
Conversation
oxigen_ptplus_extension (oxigensalud/odoo-addons-private) drops its `_extension` suffix when migrated to 18.0, becoming oxigen_ptplus -- a pure rename: no bare oxigen_ptplus module exists at 14.0, so the old module simply changes its technical name. Recording it in renamed_modules makes base's pre-migration rename the installed ir_module_module record before any module is loaded, so a bulk `-u all` migrates the existing install under the new name and preserves its data. This complements the in-module pre_init_hook, which covers the `-i` / fresh-install path (where the to-install record already exists and the rename must merge). Guijarron 14->18 migration.
oxigen_ptplus_edi_extension (oxigensalud/odoo-addons-private) drops its `_extension` suffix when migrated to 18.0, becoming oxigen_ptplus_edi -- a pure rename: no bare oxigen_ptplus_edi module exists at 14.0, so the old module simply changes its technical name. Recording it in renamed_modules makes base's pre-migration rename the installed ir_module_module record before any module is loaded, so a bulk `-u all` migrates the existing install under the new name and preserves its data. This complements the in-module pre_init_hook, which covers the `-i` / fresh-install path (where the to-install record already exists and the rename must merge). Guijarron 14->18 migration.
…partner oxigen_ptplus_partner_extension (oxigensalud/odoo-addons-private) drops its `_extension` suffix when migrated to 18.0, becoming oxigen_ptplus_partner -- a pure rename: no bare oxigen_ptplus_partner module exists at 14.0, so the old module simply changes its technical name. Recording it in renamed_modules makes base's pre-migration rename the installed ir_module_module record before any module is loaded, so a bulk `-u all` migrates the existing install under the new name and preserves its data. This complements the in-module pre_init_hook, which covers the `-i` / fresh-install path (where the to-install record already exists and the rename must merge). Guijarron 14->18 migration.
oxigen_ptplus_sale_extension (oxigensalud/odoo-addons-private) drops its `_extension` suffix when migrated to 18.0, becoming oxigen_ptplus_sale -- a pure rename: no bare oxigen_ptplus_sale module exists at 14.0, so the old module simply changes its technical name. Recording it in renamed_modules makes base's pre-migration rename the installed ir_module_module record before any module is loaded, so a bulk `-u all` migrates the existing install under the new name and preserves its data. This complements the in-module pre_init_hook, which covers the `-i` / fresh-install path (where the to-install record already exists and the rename must merge). Guijarron 14->18 migration.
oxigen_ptplus_stock_extension (oxigensalud/odoo-addons-private) drops its `_extension` suffix when migrated to 18.0, becoming oxigen_ptplus_stock -- a pure rename: no bare oxigen_ptplus_stock module exists at 14.0, so the old module simply changes its technical name. Recording it in renamed_modules makes base's pre-migration rename the installed ir_module_module record before any module is loaded, so a bulk `-u all` migrates the existing install under the new name and preserves its data. This complements the in-module pre_init_hook, which covers the `-i` / fresh-install path (where the to-install record already exists and the rename must merge). Guijarron 14->18 migration.
oxigen_ptplus_saft_extension (oxigensalud/odoo-addons-private) drops its `_extension` suffix when migrated to 18.0, becoming oxigen_ptplus_saft -- a pure rename: no bare oxigen_ptplus_saft module exists at 14.0, so the old module simply changes its technical name. Recording it in renamed_modules makes base's pre-migration rename the installed ir_module_module record before any module is loaded, so a bulk `-u all` migrates the existing install under the new name and preserves its data. This complements the in-module pre_init_hook, which covers the `-i` / fresh-install path (where the to-install record already exists and the rename must merge). Guijarron 14->18 migration.
…to oxigen_ptplus_accounting_tax_statement oxigen_ptplus_accounting_tax_statement_extension (oxigensalud/odoo-addons-private) drops its `_extension` suffix when migrated to 18.0, becoming oxigen_ptplus_accounting_tax_statement -- a pure rename: no bare oxigen_ptplus_accounting_tax_statement module exists at 14.0, so the old module simply changes its technical name. Recording it in renamed_modules makes base's pre-migration rename the installed ir_module_module record before any module is loaded, so a bulk `-u all` migrates the existing install under the new name and preserves its data. This complements the in-module pre_init_hook, which covers the `-i` / fresh-install path (where the to-install record already exists and the rename must merge). Guijarron 14->18 migration.
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.
Per-version apriori PR for the 18.0 branch (fork convention: one PR per version, one commit per module, scoped to apriori renames/merges).
Adds 7
renamed_modulesentries — the Oxigenoxigen_ptplus_*custom modules drop their_extensionsuffix when migrated 14.0 → 18.0. Pure renames: no bare short-name module exists at 14.0, so each is a 1:1 technical-name change.oxigen_ptplus_extensionoxigen_ptplusoxigen_ptplus_edi_extensionoxigen_ptplus_edioxigen_ptplus_partner_extensionoxigen_ptplus_partneroxigen_ptplus_sale_extensionoxigen_ptplus_saleoxigen_ptplus_stock_extensionoxigen_ptplus_stockoxigen_ptplus_saft_extensionoxigen_ptplus_saftoxigen_ptplus_accounting_tax_statement_extensionoxigen_ptplus_accounting_tax_statementRegistering them in
renamed_modulesmakesbase's pre-migration rename the installedir_module_modulerecords before any module is loaded, so a bulk-u allmigrates the existing installs under the new names and preserves their data. This complements the in-modulepre_init_hook, which covers the-i/fresh-install path (where the to-install record already exists and the rename must merge).Source:
oxigensalud/odoo-addons-private(Guijarron 14→18 migration).