user@host:/opt$ sudo su odoo
odoo@host:/opt$ source .odoo_venv/bin/activate
(.odoo_venv) odoo@host:/opt$
pip
the python package for the module.The name will be on the form of odoo<VERSION>-addon-<ADDON-NAME>
, as in odoo11-addon-project-key
.
pip install odoo11-addon-project-key
To be investigated. pip supports installing packages served by git+transports, but it may be trickier that it looks. It could be as easy as:
(.odoo_venv) odoo@host:/opt$ pip install -e git+https://github.com/OCA/project.git/#egg=project_key&subdirectory=/project_key
https://pip.pypa.io/en/stable/reference/pip_install/#vcs-support
Odoo needs to refresh and detect all addons that are available on its virtual env.
To do it via command line, the kind of official way to do it is to “update” any installed module. This makes Odoo to look for undetected modules.
(.odoo_venv) odoo@host:~$ python /path/to/odoo -c /path/to/odoo.conf -d "odoo_db_name" --update base --stop-after-init --without-demo=all
(.odoo_venv) odoo@host:~$ python /path/to/odoo -c /path/to/odoo.conf -d "odoo_db_name" --init "project-key" --stop-after-init --without-demo=all