OpusVL / docker-odoo-custom

An Odoo docker image with extended capabilities and fixes over the official one
Other
1 stars 1 forks source link

Proposal: include script to list modules installed in a database from docker shell #18

Open Nick-OpusVL opened 4 years ago

Nick-OpusVL commented 4 years ago

Est: (0.5 1.5 2) h

Example usages (taken from customer project README):

List modules installed in a database

docker-compose exec -T odoo /opusvl/_tools/odoo/lsmod --dbname=test

Compare the modules installed in two databases

docker-compose exec -T odoo /opusvl/_tools/odoo/lsmod --dbname=test | sort > test-db-modules.txt
docker-compose exec -T odoo /opusvl/_tools/odoo/lsmod --dbname=qa | sort > qa-db-modules.txt
comm -3 test-db-modules.txt qa-db-modules.txt
Nick-OpusVL commented 4 years ago

We may have to fix #10 first though

DaeronAlagos commented 4 years ago

Could this be something like:

docker-compose exec odoo_postgresql psql -U odoo -d DATABASE_NAME -c "\pset pager" -c "SELECT name FROM ir_module_module WHERE state='installed'