Commit Graph

13 Commits

Author SHA1 Message Date
Rémy Taymans
f1cf0dac23 Apply all suggestion made by Rémy Taymans. 2024-03-23 21:59:12 +01:00
Sylvain LE GAL
a73de5f240 [REF] apply f-string to improve readability 2024-03-23 20:53:57 +01:00
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
Rémy Taymans
2b0e359d4e [FIX] estimate-workload: wrong warning message
Previous syntax does not replace correctly the markers in the string.

Using an f-string fix this.

Before:
2024-02-06 10:47:02.303 | WARNING  | odoo_openupgrade_wizard.tools.tools_odoo_module:get_odoo_apps_url:359 - Error when trying to get %s: %s

After:
2024-02-07 10:51:11.964 | WARNING  | odoo_openupgrade_wizard.tools.tools_odoo_module:get_odoo_apps_url:356 - Error when trying to get https://apps.odoo.com/apps/modules/12.0/partner_contact_address/: Exceeded 30 redirects.
2024-02-07 11:15:23 +01:00
Rémy Taymans
38ac07c141 [FIX] getting url on apps.odoo.com
Fix #40
2024-02-05 16:14:06 +01:00
Rémy Taymans
6a36c97ee4 Use last python image for linting
The linting check can be done on any docker image with the latest python
version.

This updates de pre-commit checks and fix file linting to conform to new
standards.
2023-11-09 17:02:24 +01:00
Rémy Taymans
a04353b683 [ADD] estimate-workload: ignored module list 2023-03-16 23:26:45 +01:00
Rémy Taymans
312e654e88 [IMP] estimate_workload: add time configuration 2023-01-27 17:30:50 +01:00
Rémy Taymans
a2423ec4f8 [IMP] estimate-workload: add total column in report 2023-01-18 19:50:29 +01:00
Rémy Taymans
a5dcd8fdcc [IMP] module repository_name detection
Some repository may have multiples remotes. This tries to find the main
remote when possible.
2023-01-10 19:52:51 +01:00
Rémy Taymans
9281d6b572 [FIX] repository_name case insensitive 2023-01-10 19:50:20 +01:00
Rémy Taymans
82da4bb3ba [FIX] estimate-workload: InvalidGitRepositoryError
For older Odoo version directories are named openerp.
2023-01-02 18:52:00 +01:00
Sylvain LE GAL
b37bfa8e31 [REF] create tools & cli folders 2022-06-27 01:57:31 +02:00