forked from tvtma/OpenUpgrade
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MIG] openupgrade_framework, base v17 #601
Merged
royle-vietnam
merged 43 commits into
Viindoo:17.0
from
royle-vietnam:v17_mig_openupgrade_framework_base
May 15, 2024
Merged
[MIG] openupgrade_framework, base v17 #601
royle-vietnam
merged 43 commits into
Viindoo:17.0
from
royle-vietnam:v17_mig_openupgrade_framework_base
May 15, 2024
Conversation
This file contains 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
If we don't include it, /jsonrpc route doesn't work.
If you have a module in previous versions that adds data on a model, and such model is not loaded in the registry in current version because the module is absent in it, you can't uninstall such module, getting this error: File "odoo/odoo/addons/base/models/ir_model.py", line 1945, in _module_data_uninstall delete(self.env[model].browse(item[1] for item in items)) File "odoo/odoo/api.py", line 463, in __getitem__ return self.registry[model_name]._browse(self, (), ()) File "odoo/odoo/modules/registry.py", line 177, in __getitem__ return self.models[model_name] KeyError: 'model' With this patch, data cleanup of such model is skipped and there's no crash.
…ore ; add links to the new OpenUpgrade website
If corresponding field is None, we need to avoid the "AttributeError: 'NoneType' object has no attribute error.
…rg validate as it is not anymore in odoo 15
…e useless after the input argument validate has been removed
and after the migration
…r table before and after the migration"
Because we captured the exception in _raise_view_error and archived that view, so info is None, but it is called to info.get('select') in NameManager.check, which will raise an exception AttributeError, so we need to override to not raise an exception
royle-vietnam
force-pushed
the
v17_mig_openupgrade_framework_base
branch
4 times, most recently
from
May 15, 2024 01:45
d4b1929
to
4c0960c
Compare
royle-vietnam
changed the title
WIP: [17.0][MIG] openupgrade_framework, base v17
[MIG] openupgrade_framework, base v17
May 15, 2024
royle-vietnam
force-pushed
the
v17_mig_openupgrade_framework_base
branch
4 times, most recently
from
May 15, 2024 04:02
33e5b63
to
a70fc46
Compare
.github/workflows/test.yml
unless explicitely requested
royle-vietnam
force-pushed
the
v17_mig_openupgrade_framework_base
branch
from
May 15, 2024 04:08
a70fc46
to
573c0e3
Compare
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.
this is preliminary because I didn't yet go through all analysis to migrate them, but this lets the base migration run without crashing
TODOs: