Conversation
343a106 to
8f33a33
Compare
|
Whats the status of this PR? Is it possible to get it merged soon? |
|
Nice. Looking forward to see this done. |
|
Hi. This PR is WIP. regards. |
| "recommended to run the Odoo with --load=openupgrade_framework " | ||
| "when migrating your database." | ||
| ) | ||
| openupgrade.rename_xmlids(cr, [("mail.icp_mail_catchall_alias", "base.icp_mail_catchall_alias")]) |
There was a problem hiding this comment.
Line too long and correct indentation
| openupgrade.rename_xmlids(cr, [("mail.icp_mail_catchall_alias", "base.icp_mail_catchall_alias")]) | |
| openupgrade.rename_xmlids( | |
| cr, | |
| [ | |
| ("mail.icp_mail_catchall_alias", "base.icp_mail_catchall_alias"), | |
| ("mail.icp_mail_bounce_alias", "base.icp_mail_bounce_alias"), | |
| ], | |
| ) |
| def _postprocess_view(self, node, model, validate=True, editable=True): | ||
| """Don't validate views, _raise_view_error is mutted""" | ||
| return View._postprocess_view._original_method( | ||
| self, node, model, validate=False, editable=editable | ||
| ) |
There was a problem hiding this comment.
@legalsylvain correct number of args
| def _postprocess_view(self, node, model, validate=True, editable=True): | |
| """Don't validate views, _raise_view_error is mutted""" | |
| return View._postprocess_view._original_method( | |
| self, node, model, validate=False, editable=editable | |
| ) | |
| def _postprocess_view(self, node, model, editable=True): | |
| """Don't validate views, _raise_view_error is mutted""" | |
| return View._postprocess_view._original_method( | |
| self, node, model, editable=editable | |
| ) |
|
@legalsylvain Looking forward to see this done. Could you make a todo list to follow / help? |
|
@royleviindoo. I haven't worked on this RP for a while, so I'm not sure! Have a good weekend. |
|
@royleviindoo FYI, I am currently working on this fork https://github.com/jcdrubay/OpenUpgrade/tree/15.0-add-xml-ids-moved-from-mail-to-base |
Hi @jcdrubay , I looked at your repository, but didn't see any difference |
|
@royleviindoo : you can review the diff hère : |
|
Hi @jcdrubay. CI is now green. Thanks ! just tested a migration from 14 to 15 with that up-to-date branch (
Some remaining points :
Something should be fixed in openupgradelib project.
Fixed here : aebb0d2
|
aebb0d2 to
7d5849b
Compare
|
I would be happy to continue the work on base module. |
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.
Co-authored-by: Jean-Charles Drubay <jcdrubay@users.noreply.github.com>
…rg validate as it is not anymore in odoo 15
…o the module base
…e useless after the input argument validate has been removed
bb02612 to
e4c3934
Compare
e4c3934 to
130d038
Compare
Hi all.
I just executed meld on odoo subfolder to check the differences, to guess if the openupgrade_framework was requiring changes.
At first sight : very fiew changes.
some changes related to base framework (for information)
Some changes related to OpenUpgrade framework
lot of changes in
_check_xml. Specially odoo/odoo@46f1912. Nothing to do in my opinionlot of changes in
_post_process_view. Here odoo/odoo@331b547. Nothing to do in my opinionhandle_view_errorhas been splitted in two functions here odoo/odoo@9ae8c1a. TODO