Step to reproduce :
- run a V15 instance
- add a reference to 'OCA/geospatial' repo that doesn't contain any odoo module.
As a result, Odoo will exit with the following error:
odoo-bin: error: option --addons-path: the path '/odoo_env/src/OCA/geospatial' is not a valid addons directory
To avoid such problem, and avoid to have to remove empty repository
(that could become non empty in the future, and contains some migrations scripts),
- we reimplement a version of the odoo function _is_addons_path (odoo/odoo/tools/config.py)
- we add an info log :
Skipping addons path '.../src/env_15.0/src/OCA/geospatial' because it doesn't contain any odoo module.
|
||
|---|---|---|
| .. | ||
| tools_click_odoo_contrib.py | ||
| tools_docker.py | ||
| tools_odoo_instance.py | ||
| tools_odoo_module.py | ||
| tools_odoo.py | ||
| tools_postgres.py | ||
| tools_system.py | ||