Sylvain LE GAL
2d4a7d6917
[FIX] remove docker build warning, regarding ENV values.
...
WARN: LegacyKeyValueFormat: 'ENV key=value' should be used instead of legacy 'ENV key value' format
2024-11-04 11:32:53 +01:00
Sylvain LE GAL
c0b8be6b20
[ADD] support 18.0
2024-11-04 11:26:23 +01:00
Sylvain LE GAL
1f079e088e
[ADD] support 17.0
2024-11-04 11:22:37 +01:00
Sylvain LE GAL
0785c31825
[REF] Improve settings. Introduce _FIRST_ODOO_VERSION_SUPPORTED and _LAST_ODOO_VERSION_SUPPORTED
2024-11-04 10:55:46 +01:00
Simon Maillard
f0bc155c3b
[FIX] psycopg2 / pg versions auth conflict
...
Downgrade auth method/encryption to md5 if initial odoo version is <=12
and postgres version >=14
2024-10-09 14:50:59 +02:00
Rémy Taymans
5ddbbc39e2
Merge branch 'fix-docker-build-handling' into 'main'
...
[FIX] Docker build failure doesn't display logs because build_log is now a list of dicts?
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!89
2024-10-09 12:46:36 +00:00
Sylvain LE GAL
1d15b1f8d3
[FIX] Try to #60 . introduce retry mechanism when container removal failed
2024-10-08 15:16:06 +02:00
Simon Maillard
eb22c93e15
[DBG] temporary add debug statement
2024-10-08 11:40:02 +02:00
Rémy Taymans
20a53ab0b6
Merge branch 'alexAubin1-main-patch-05082' into 'main'
...
[FIX] cli: Require --database argument for commands that need it (run, psql, generate_module_analysis, install_from_csv)
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!87
2024-10-03 18:48:12 +00:00
Alexandre Aubin
99b710a703
[FIX] Docker build failure doesn't display logs because build_log is now a list of dicts?
2024-10-03 20:04:13 +02:00
Alexandre Aubin
d59c487d1b
cli: always require --database argument for commands that needs it
...
(run, psql, generate_module_analysis, install_from_csv), prevent it from
being None resulting in funky stuff
2024-10-03 19:11:16 +02:00
Rémy Taymans
393411f937
Merge branch 'fix_docker_container_removal_already_in_progress' into 'main'
...
[FIX] Container removal already in progress
Closes #60
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!84
2024-10-03 16:16:12 +00:00
Simon Maillard
f649627d63
[FIX] Container removal already in progress
...
fixes #60
2024-10-03 14:17:20 +02:00
Ahmet Yiğit Budak
ff56b47a94
[FIX] Make sure that source exist before droping dest
2024-10-03 10:45:58 +00:00
LE GAL SYLVAIN
1f95377efa
Merge branch 'main' into 'main'
...
[FIX] pull-submodule work with python3.10
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!80
2024-10-01 09:27:18 +00:00
Rémy Taymans
29674afe84
Merge branch 'ref-simplify-odoo-versions-list' into 'main'
...
[REF] simplify odoo version list configuration
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!75
2024-10-01 09:11:22 +00:00
Sylvain LE GAL
15b111eaa7
[REF] simplify odoo version list configuration
2024-10-01 09:55:32 +02:00
Boris Gallet
415fe743f6
[FIX] pull-submodule work with python3.10
2024-09-30 17:22:33 +02:00
Sylvain LE GAL
846d2f631b
[IMP] postgtresql-version option
2024-09-30 17:05:56 +02:00
Simon Maillard
f941240fea
Display docker error
...
Display error if any docker container creation fail
2024-09-30 10:14:31 +02:00
Simon Maillard
437cf41d4a
[IMP] Litte code improvment, Removes useless transtyping
2024-08-22 09:06:08 +02:00
Simon Maillard
39f70d1012
[FIX] allow to run multiple post-*py by step
...
Like:
scripts/step_01__regular__12.0/01-post-migration-uninstall-modules.py
scripts/step_01__regular__12.0/02-post-migration-fix-project-issues.py
scripts/step_01__regular__12.0/03-post-migration-fix-mail-aliases.py
scripts/step_01__regular__12.0/04-fix-misc-inconsistant-records.py
2024-08-21 10:12:14 +02:00
Gabriel Pickenhayn
7dcf456525
[ADD] restore-sql
2024-05-07 14:48:44 +00:00
Rémy Taymans
62f77499fb
Merge branch 'allow-to-upgrade-multiple-databases-in-parallel' into 'main'
...
allow to upgrade multiple databases in parallel
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!69
2024-05-02 20:14:48 +00:00
hugues de keyzer
af1b6efce6
remove specific container instead of pruning
2024-04-30 15:11:20 +02:00
hugues de keyzer
560f4f5485
publish docker ports only when needed
2024-04-30 15:10:43 +02:00
Rémy Taymans
0a0c763a49
Merge branch 'allow-minus-in-database-names' into 'main'
...
allow hyphen-minus character in database names
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!70
2024-04-12 10:32:13 +00:00
hugues de keyzer
bb2b3be3b4
allow hyphen-minus character in database names
2024-04-12 11:35:22 +02:00
hugues de keyzer
58bc87380d
add database name to container name
2024-04-10 17:15:21 +02:00
hugues de keyzer
148aa5f89f
add config file and modules file cli options
...
allow to provide a config file and a modules file option to use
different files than the default ones. this is useful when using the
same environment for different databases.
2024-04-10 15:32:29 +02:00
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
7b5f922c61
[REF] remove useless commented code
2024-03-23 20:51:18 +01:00
Sylvain LE GAL
853f37889c
[FIX] 'CREATE DATABASE' is a command, not a request that requires result
2024-03-23 10:23:54 +01:00
Sylvain LE GAL
4a874957ed
[REF] move postgres code into dedicated tools file
2024-03-23 10:16:32 +01:00
Sylvain LE GAL
a11d137eed
[IMP] oow init : new option --postgresql-version
2024-03-22 20:30:43 +01:00
Rémy Taymans
567ffd4428
Merge branch 'ADD-restoredb' into 'main'
...
[ADD] restoredb function
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!40
2024-03-03 08:25:39 +00:00
Sylvain LE GAL
748d5a54f6
[ADD] restoredb function
2024-03-02 23:59:36 +01:00
Sylvain LE GAL
dbdf592990
[IMP] 'run' cli command. Add '--update-modules' option
2024-03-01 15:51:09 +01:00
Sylvain LE GAL
d890a460ea
[IMP] Harmonize run and upgrade cli command. Allow to call command with argument --with-demo / --without-demo like in install-from-csv.
...
For that purpose, create a new decorator.
[REF] Change the default of install-from-csv to harmonize. (allways False)
2024-03-01 15:51:09 +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
30198392c5
[ADD] dropdb
2024-02-22 08:53:45 +01:00
LE GAL SYLVAIN
dea0bbd70c
Merge branch 'fix-estimate-workload' into 'main'
...
[FIX] estimate-workload: wrong warning message
See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!53
2024-02-08 09:51:34 +00:00
Rémy Taymans
25655d4b7a
[FIX] install-from-csv: add with-demo option
...
Add a flag to specify if the database created by install-from-csv should
install demo data or not.
Fix #41
2024-02-07 17:25:56 +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
d781709cb5
Fix 404 not found errors when using docker
2023-11-09 20:50:46 +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
690ab60699
Fix Dockerfile when using root on host
...
root user should not be used to create container and oow should not be
run as root.
But when running oow in a docker, then the default user of this docker
can be root.
This fix allow to link the odoo user in the odoo environment docker to
match a root user of the host docker.
2023-11-09 16:36:53 +01:00
Rémy Taymans
a3a8af9a70
Fix listing containers during removal of containers
...
Removing a container can take some time to be performed. Listing
containers when a container is currently being removed may cause errors.
Because listing container and filtering them by name requires to fetch
data from the container that is currently being removed.
2023-11-09 16:27:29 +01:00