[IMP] set web_diagram as merged into web to avoid to uninstall it manually#3232
Conversation
|
Hi @MiquelRForgeFlow, @StefanRijnhart, @pedrobaeza, |
|
I prefer to not do such merge, as the module doesn't have a replacement as is. Most of the installations don't make use of the diagram view, but imagine you have a module that is using it, and doing this merge will put the module automatically as not absent, and its dependencies redirected to |
|
They completely removed it, they didn't do a merge. |
|
I understand your point of view. Does it mean that for each migration from 13 to 14, each people should manually uninstall this module ? Note : the commit mentionned by @MiquelRForgeFlow says " [REM] web_diagram: remove unused module". So no chance that the module will be ported in 14 ? |
|
You can check if there's any remaining ir.ui.view with such type, and only merge it if there isn't any. |
👍 Thanks ! |
|
Hi @pedrobaeza : not sure to see exactly what you mean. Is this what you have in mind? |
|
Not exactly: in openupgrade.update_module_names(cr, [("web_diagram", "web")], merge_modules=True) |
0d0aa08 to
fb277c4
Compare
|
Thanks @pedrobaeza, I made the changes and it fixed my problem. (no need to uninstall |
There was a problem hiding this comment.
Can you please avoid empty extra lines inside a method?
There was a problem hiding this comment.
Can you please avoid empty extra lines inside a method?
Done. Is it an OCA rules ? If yes, could be great to have a pre-commit for that point.
There was a problem hiding this comment.
It's stated as advisable in PEP8, and my thumb rule is to not introduce such empty lines where the previous code didn't have them.
…ually, if no views (type='diagram') are available in the database
fb277c4 to
9e58990
Compare
|
What does it IMP tag mean? |
rational
web_diagramexists in odoo V13 and is auto_installableweb_diagramdoesn't exist in V14(https://github.com/OCA/OpenUpgrade/blob/14.0/docsource/modules130-140.rst)
So before that patch, we should uninstall manually that module when migrating from 13 to 14.
question
However, I don't know if
web_diagramhas been dropped, or has moved into EE. If yes, is this PR OK ? I don't think that the objective ofopenupgradeproject is to migrate EE instance, but maybe I'm wrong...comments / alternative welcome.