ZueZue
ZueZue

Reputation: 17

Uninstall module form command line odoo10

I tried to uninstall my custom module by using

'./odoo.py -d db_name --uninstall module_name(s)' command.

But I get the error:

'bash: ./odoo.py: No such file or directory'

How can I fix it? How can i know a module is installed or not?

Thanks

Upvotes: 0

Views: 10478

Answers (3)

holydragon
holydragon

Reputation: 6728

Try executing this command:

UPDATE ir_module_module SET state = 'uninstalled' WHERE name = 'module_name';

in postgres.

Upvotes: 1

Dry_accountant_09
Dry_accountant_09

Reputation: 1499

In odoo 12, I ran the below command in psql:

UPDATE ir_module_module SET state = 'to remove' WHERE name = 'app_library';

Once its updated, restart the odoo server:

python odoo-bin -d demodb (windows)
 ./odoo-bin -d demodb (linux)

The module installed before is completely uninstalled.

Upvotes: 1

DASADIYA CHAITANYA
DASADIYA CHAITANYA

Reputation: 2892

There is no any possible option now to uninstall the odoo module directly from the command prompt.

You can also see another option for help further for additional commands using

./odoo-bin --help

Which gives you the list of additional option with addons-path

Upvotes: 0

Related Questions