Tag: odoo install command

Odoo How to install or uninstall a Odoo module from command line or using python

cd /odoo-installed folder
python3 odoo-bin shell -d db-name--addons-path=/your-addons-path


Then run the bleow Python script
For Install
self.env['ir.module.module'].search([('name', '=', 'moule-name')]).button_immediate_install()
For Unistall
self.env['ir.module.module'].search([('name', '=', 'moule-name')]).button_immediate_uninstall()