Commit Graph

48 Commits

Author SHA1 Message Date
Rémy Taymans
42bf4f4379 Merge branch 'add-option-skip-update-all' into 'main'
[IMP] oow upgrade. Add skip_update as an option in config.yml.

See merge request odoo-openupgrade-wizard/odoo-openupgrade-wizard!111
2025-02-11 13:41:47 +00:00
Sylvain LE GAL
bfde1ddc1f fixup! [IMP] oow upgrade. Add skip_update as an option in config.yml. (migration_step option). If enabled, in this step, the update all will be skipped, and only pre-migration (SQL) and post-migration (python script) will be executed. This is interesting: - for the first step, if your production is up-to-date, to save time. - for the last step, in recent version (since V14), where openupgrade doesn't contain odoo code. In that case, you should be sure that all your migration is OK, because in openupgrade context, some errors are just ignored. Use this option with caution. 2025-02-11 10:45:25 +01:00
Sylvain LE GAL
4fc7056932 [IMP] oow upgrade. Add skip_update as an option in config.yml. (migration_step option). If enabled, in this step, the update all will be skipped, and only pre-migration (SQL) and post-migration (python script) will be executed.
This is interesting:
- for the first step, if your production is up-to-date, to save time.
- for the last step, in recent version (since V14), where openupgrade doesn't contain odoo code. In that case, you should be sure that all your migration is OK, because in openupgrade context, some errors are just ignored.
Use this option with caution.
2025-02-03 11:26:37 +01:00
Simon Maillard
ca53f46248 [IMP] Use builtins "exists" click feature to check if provided files
exists
2025-02-01 13:59:11 +00:00
Simon Maillard
7d1183b140 [IMP] cli restoredb: manage filestore in subfolder 2025-01-31 19:28:01 +00:00
Sylvain LE GAL
0bfacbd133 fixup! [ADD] guess requirements feature 2024-11-05 01:00:52 +01:00
Sylvain LE GAL
3b3d652756 [ADD] guess requirements feature 2024-11-04 20:42:07 +01: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
Ahmet Yiğit Budak
ff56b47a94 [FIX] Make sure that source exist before droping dest 2024-10-03 10:45:58 +00:00
Sylvain LE GAL
846d2f631b [IMP] postgtresql-version option 2024-09-30 17:05:56 +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
560f4f5485 publish docker ports only when needed 2024-04-30 15:10:43 +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
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
Rémy Taymans
30198392c5 [ADD] dropdb 2024-02-22 08:53:45 +01: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
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
Sylvain LE GAL
7a31cc666d [FIX] copydb : add the copy of the filestore
[DOC] Add documentation section for the copydb function
2023-07-17 14:12:14 +02:00
Rémy Taymans
757cc19576 [FIX] dumpdb: error when using force 2023-07-12 08:35:20 +02:00
Rémy Taymans
debf57bac3 [ADD] dumpdb command 2023-07-12 08:32:57 +02:00
Rémy Taymans
284417bb00 [ADD] psql command 2023-05-09 21:34:17 +02:00
Rémy Taymans
9e0489f1f1 [FIX] upgrade: run pre_migration files 2023-02-28 09:43:54 +01:00
Rémy Taymans
312e654e88 [IMP] estimate_workload: add time configuration 2023-01-27 17:30:50 +01:00
Rémy Taymans
5777d9004f [IMP] docker-build: errors if no odoo_requirements file 2023-01-03 14:16:29 +01:00
Sylvain LE GAL
ee8fb9bd1a [FIX] pull submodule : use str instead of Posix path 2022-11-10 20:23:58 +01:00
Rémy Taymans
f3c9d3b533 [FIX] odoo.cfg to odoo.conf
Close issue #8
2022-10-11 14:39:38 +02:00
Sylvain LE GAL
e63851cf9e [ADD][WIP] copydb (pseudo click-odoo function 2022-10-11 12:26:41 +02:00
Sylvain LE GAL
bdc9b606ec [IMP] Add postgresql custom configuration ; [ADD] extra setting into odoo_default_company key. (in config.yml file) ; [ADD] odoo_rpc_timeout extra settings ; [FIX] restore call to custom odoo.cfg file 2022-10-11 12:26:41 +02:00
Sylvain LE GAL
531978eb00 [ADD] repos url git log! 2022-07-12 00:55:36 +02:00
Sylvain LE GAL
c924103fa0 [IMP] add local_user_id in build call. 2022-07-11 15:15:22 +02:00
Sylvain LE GAL
11c43cf8b2 [IMP] description in config.yml file 2022-07-11 13:57:13 +02:00
Sylvain LE GAL
be74ce5bab [REF] Set correct dockerfile, based on odoo/debian ones. (for 12 to 15) 2022-07-11 13:43:55 +02:00
Sylvain LE GAL
4427470a41 various 2022-06-29 17:46:58 +02:00
Sylvain LE GAL
1261dfaa2f [REF] Add logger in test 2022-06-29 17:37:08 +02:00
Sylvain LE GAL
36db85e4b9 [ADD] Log if container fails during odoo execution 2022-06-29 17:17:17 +02:00
Sylvain LE GAL
424131e9b2 [REF] Remove bind fucking mounts (postgres) replaced by nice volumes 2022-06-29 16:28:48 +02:00
Sylvain LE GAL
b5419e5d19 [IMP] use LOCAL_USER_ID calling odoo-bedrock, so no need to create filestore and log folder with 777 2022-06-28 16:55:08 +02:00
Sylvain LE GAL
bac5d0d22e wip 2022-06-27 21:59:57 +02:00
Sylvain LE GAL
80e5e3ad87 [REF] Dockerfiles : switch from odoo/odoo to acsone/odoo-bedrock 2022-06-27 15:56:28 +02:00
Sylvain LE GAL
b37bfa8e31 [REF] create tools & cli folders 2022-06-27 01:57:31 +02:00