odoo-openupgrade-wizard/odoo_openupgrade_wizard
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
..
cli [ADD] dropdb 2024-02-22 08:53:45 +01:00
templates Fix Dockerfile when using root on host 2023-11-09 16:36:53 +01:00
tools [FIX] Do not crash silently, when a repos.yml file reference an empty addons folder. 2024-03-01 13:47:26 +01:00
__init__.py [REF] add ensure_folder_exists system 2022-04-08 19:09:24 +00:00
__main__.py [REF] add ensure_folder_exists system 2022-04-08 19:09:24 +00:00
configuration_version_dependant.py [FIX] Do not crash silently, when a repos.yml file reference an empty addons folder. 2024-03-01 13:47:26 +01:00