[IMP] Update renamed_models and renamed_fields datasets based on OpenUpgrade#143
Open
thienvh332 wants to merge 1 commit intoOCA:masterfrom
Open
[IMP] Update renamed_models and renamed_fields datasets based on OpenUpgrade#143thienvh332 wants to merge 1 commit intoOCA:masterfrom
thienvh332 wants to merge 1 commit intoOCA:masterfrom
Conversation
Collaborator
|
Hi @thienvh332. Thanks for your contribution. I was asking myself if it's great to have a duplicated data in this project. I mean info in odoo-module-migrator, and info in OpenUpgrade / apriori.py file.
A part that point, nice improvment. Thanks ! |
Contributor
Author
|
Hi @legalsylvain , Thanks for your comments! Yes, we used a script to generate those files, and we’ve published it here: OpenUpgrade-Api. Example command to regenerate a YAML: python manage.py get --object-type removed --object models --versions 18.0 --output-directory outputSo whenever Hopefully this proves useful to the community! |
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.
renamed_modelsandrenamed_fieldsdatasets to help odoo-module-migrator detect and handle models and fields that have been renamed between Odoo versions.upgrade_analysis.txt|pre-migration.py).Eg:
What’s included
Renamed models
renamed_models/migrate_{FROM_VERSION}_{TO_VERSION}/renamed_models.yaml['old_model_name', 'new_model_name', None]Renamed fields
renamed_fields/migrate_{FROM_VERSION}_{TO_VERSION}/{module}.yaml['model_name', 'old_field_name', 'new_field_name', '']