odoo-openupgrade-wizard/odoo_openupgrade_wizard/tools
Sylvain LE GAL f75821c2bc [FIX] Do not crash silently, when a repos.yml file reference an empty addons folder.
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.
2024-03-01 13:47:26 +01:00
..
tools_click_odoo_contrib.py [ADD] dropdb 2024-02-22 08:53:45 +01:00
tools_docker.py Fix 404 not found errors when using docker 2023-11-09 20:50:46 +01:00
tools_odoo_instance.py Use last python image for linting 2023-11-09 17:02:24 +01:00
tools_odoo_module.py [FIX] Do not crash silently, when a repos.yml file reference an empty addons folder. 2024-03-01 13:47:26 +01:00
tools_odoo.py [FIX] Do not crash silently, when a repos.yml file reference an empty addons folder. 2024-03-01 13:47:26 +01:00
tools_postgres.py Fix listing containers during removal of containers 2023-11-09 16:27:29 +01:00
tools_system.py Use last python image for linting 2023-11-09 17:02:24 +01:00