-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[Add] Allow to uninstall module(s) from command line #12373
Conversation
Do we really want this feature? |
@mart-e I for one would love this feature. Every once in a while it would be handy and faster. |
I would love this feature too! In the idea of automated migrations on projects, this is a must-have. |
@dek-odoo Is there a task linked to this PR ? |
No @rim-odoo |
Definitely necessary. Sometimes, when a module gives non-trivial errors in the server and you can't go to the modules menu (precisely because of the error), I have to run an update query on the ir_module_module table and set in as 'uninstalled' just so I can recover Odoo service. Or am I missing something? |
This PR will be merged? |
@Yenthe666 I would love this also, since sometimes a modules due to many issues, cannot be removed from the UI. It usually forced you to remove other modules or update the db manually. |
I believe that this feature is relevant, for practical and for consistency reasons. |
@dreispt +1 |
👍 |
This is how I do it; for now when I get some problem: |
8fc274d
to
283a7fc
Compare
rebased.. |
283a7fc
to
f02fd0f
Compare
…get UI because of some crash and you are not able to get your system to healthy state
f02fd0f
to
b41ad2e
Compare
Any news on this ? |
@KangOl ? |
good work. I used the code in a v10 migration to uninstall addons after migration which could not be uninstalled prior to migration due to dependencies. One thing, though: the mods I wanted to uninstall after migration were all of state 'to upgrade'. I think it makes sense to include that state along with 'installed'. After all, an uninstall cli option should override the upgrade state in the db. |
The development was canceled, not going to be integrated |
@mart-e could you give feedback why it was canceled though? Quite some people wanted it, this PR made them happy and now it is cancelled. I'm quite sure there is a good reason though. Could you let us know why? |
Lots of developments get canceled. This was a side development but not our priority. We refocus from time to time to more urgent work. |
This is what demotivates me from doing open source contribution. 👎 |
@mart-e too bad this got cancelled, this is one of the best PR's in weeks. |
@dek-odoo you need to realize that, because somebody spend some time to make a contribution is not a good enough reason to be integrated. The point of opening the contributions from anyone is to make the software better, not to make it fit to every user needs. |
@dek-odoo There is a good chance that this PR is accepted at https://github.com/oca/ocb |
Too bad it was not accepted, thumps up though. 👍 |
@mart-e any chance this could be reconsidered? |
@dreispt will see, I have put the task back to validate but this is a low priority so may take some times before review. |
Sorry but after internal discussion, it is still a no.
|
Try dodoo-migrator https://github.com/xoe-labs/dodoo-migrator ... it's doing a decent enough job for the time being. |
Simply easy and it helps much. I always do the same and if add -u all to consider all modules, you will get the message about all the missing depends of some modules and that is really awesome. |
update ir_module_module |
Task: https://www.odoo.com/web?#id=27415&view_type=form&model=project.task&action=327&menu_id=4720
Pad: https://pad.odoo.com/p/r.24e1b44c2f41c1f5cd651bde4944b906
Description of the issue/feature this PR addresses: Allow to uninstall from command line ✨
Current behavior before PR: Sometimes you are not able to get to UI due to some crash and you become helpless, you can not uninstall the culprit module. One module can break the whole system and you have no way of uninstalling the module that caused the problems. For Example, The error "can not parse from bool" which may occur after the upgrade of a module.
Often you dont get UI because of some crash and you are not able to get your system to healthy state.
Usage: ./odoo.py -d db_name --uninstall module_name(s)
(Comma separated list of module_name(s))
Desired behavior after PR is merged: Ability to uninstall module from command line.
One use case: https://youtu.be/7jtmDM0wfFQ
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr