-
-
Notifications
You must be signed in to change notification settings - Fork 696
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 v17 #4427
[MIG] openupgrade_framework v17 #4427
Conversation
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
33e5b63
to
a70fc46
Compare
f729510
to
81bc5f3
Compare
Hi I have followed up some comments in #4327 by Mr @StefanRijnhart and comment #4427 (comment) by @pedrobaeza |
openupgrade_framework/odoo_patch/odoo/addons/base/models/ir_model.py
Outdated
Show resolved
Hide resolved
Can you help me here? I asked on #4327 to remove https://github.com/OCA/OpenUpgrade/blob/16.0/openupgrade_framework/odoo_patch/odoo/tests/loader.py, and it's certainly gone here but it's not removed in the migration commit. Where is it removed? |
16.0 reference database is now added to https://github.com/OCA/OpenUpgrade/releases/tag/databases. |
I drop that commit (using git rebase and drop) outside of this PR, so you mean that i need to keep it and make another commit to remove it? |
81bc5f3
to
d22c24f
Compare
Thank you |
d22c24f
to
ed631af
Compare
Yes please! You can remove the code in the migration commit. That way, we keep neatly track of the changes per version. |
@StefanRijnhart OK, then can i cherry-pick that commit then i'll create a commit to remove .Meaning that the |
@duong77476-viindoo Actually, that's not conventional. Please back-up this branch to another name (can be locally), then reset the branch and redo the git format-patch method with which this branch was created in the first place. Then cherry-pick your migration commit, then amend the migration commit. |
.github/workflows/test.yml
unless explicitely requested
ed631af
to
358ece8
Compare
@StefanRijnhart Hello, i have done what you advised, please review, thanks |
-This commit remove unecessary patch -Check if test exist then execute it in the test.yml -Remove the test loader from patch, detail at OCA#4327 (comment)
358ece8
to
52de874
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
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: