[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
|
Hi I have followed up some comments in #4327 by Mr @StefanRijnhart and comment #4427 (comment) by @pedrobaeza |
|
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



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: