-
Notifications
You must be signed in to change notification settings - Fork 62
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
click-odoo-uninstall, search for installed module only #90
Comments
Hi! What error do you observe? Should we include modules to upgrade too? |
As far as i've seen it is not needed in upgrade |
What I mean is that a module is in state |
Oh, I see. so we could use state != 'uninstalled' |
I'm willing to make a pr, can u help with tests? 😬 |
Hi there,
any chance to search for installed module only? It will prevent error if module is not installed.
from:
modules = env["ir.module.module"].search([("name", "in", module_names)])
to:
modules = env["ir.module.module"].search([("name", "in", module_names),('state','=','installed')])
in
click-odoo-contrib/click_odoo_contrib/uninstall.py
Line 13 in 0a585ef
The text was updated successfully, but these errors were encountered: