Skip to content
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

Cannot uninstall modules #15

Open
Jerther opened this issue Dec 10, 2021 · 0 comments
Open

Cannot uninstall modules #15

Jerther opened this issue Dec 10, 2021 · 0 comments

Comments

@Jerther
Copy link
Contributor

Jerther commented Dec 10, 2021

odooly.Client(...).env.uninstall('some_module')

I get:

One or more of the selected modules have already been uninstalled

Because of this line that is executed before the button_uninstall method is actually called:
sel.write({'state': 'to remove'})

Odoo checks if the module's state is either "installed" or "to upgrade" before uninstalling and if it is not, it throws said error.

If I comment out the write line in odooly, it works fine.

Now the line just above it is a comment that says "# A trick to uninstall dependent add-ons" so I wouldn't call removing the line a sure fix yet...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant